Use HEAP_SIZE()

This commit is contained in:
Lurs
2026-04-06 23:08:34 +02:00
parent 88f8433767
commit 06e10fb2cb
2 changed files with 4 additions and 10 deletions
+2 -5
View File
@@ -6,6 +6,7 @@
#include "d/dolzel.h" // IWYU pragma: keep
#include "d/d_k_wmark.h"
#include "dusk/memory.h"
#include "JSystem/J3DGraphBase/J3DMaterial.h"
#include "SSystem/SComponent/c_math.h"
#include "d/actor/d_a_player.h"
@@ -33,11 +34,7 @@ int dkWmark_c::create() {
mColorType = this->parameters;
}
#if TARGET_PC
mpHeap = mDoExt_createSolidHeapFromGameToCurrent(0x1100, 0x20);
#else
mpHeap = mDoExt_createSolidHeapFromGameToCurrent(0x880, 0x20);
#endif
mpHeap = mDoExt_createSolidHeapFromGameToCurrent(HEAP_SIZE(0x880, 0x1100), 0x20);
if (mpHeap != NULL) {
JKRHEAP_NAME(mpHeap, "dkWmark_c::mpHeap");
J3DModelData* modelData = (J3DModelData*)dComIfG_getObjectRes("Alink", 0x23);