mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-02-04 17:19:09 +00:00
fix(whoa): update thunderbrew to use the refactored squall error/validation and bc allocation macros
This commit is contained in:
parent
1aeacd0d2e
commit
46843880ef
66 changed files with 459 additions and 457 deletions
|
|
@ -22,5 +22,6 @@ target_link_libraries(glue
|
|||
ui
|
||||
util
|
||||
PUBLIC
|
||||
bc
|
||||
storm
|
||||
)
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@
|
|||
#include "client/ClientServices.hpp"
|
||||
#include "db/Db.hpp"
|
||||
#include "ui/FrameScript.hpp"
|
||||
#include <new>
|
||||
#include <storm/Memory.hpp>
|
||||
#include <bc/Memory.hpp>
|
||||
#include <storm/String.hpp>
|
||||
|
||||
float CRealmList::s_avgLoad;
|
||||
|
|
@ -15,8 +14,7 @@ void CRealmList::Initialize() {
|
|||
CRealmList::s_categories.SetCount(g_cfg_CategoriesDB.GetNumRecords());
|
||||
|
||||
for (int32_t i = 0; i < g_cfg_CategoriesDB.GetNumRecords(); i++) {
|
||||
auto m = SMemAlloc(sizeof(RealmCategory), __FILE__, __LINE__, 0x0);
|
||||
auto category = new (m) RealmCategory();
|
||||
auto category = NEW(RealmCategory);
|
||||
|
||||
CRealmList::s_categories[i] = category;
|
||||
CRealmList::s_categories[i]->m_category = g_cfg_CategoriesDB.GetRecordByIndex(i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue