fix(whoa): update thunderbrew to use the refactored squall error/validation and bc allocation macros

This commit is contained in:
superp00t committed 2025-03-31 23:52:37 -04:00
1 parent 1aeacd0d2e
commit 46843880ef
66 files changed
+459 -457

No files matched your search

+1
View File
@@ -22,5 +22,6 @@ target_link_libraries(glue
ui
util
PUBLIC
bc
storm
)
+2 -4
View File
@@ -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);