This commit is contained in:
Ethan Roseman 2020-12-01 18:24:43 -05:00
parent d39d5837c3
commit 1b3bcf7dd6
1 changed files with 2 additions and 3 deletions

View File

@ -227,11 +227,10 @@ INCLUDE_ASM(s32, "code_303c0_len_3e10", func_80057F20);
void* alHeapAlloc(ALHeap *heap, s32 arg1, s32 size) {
void* ret = NULL;
u8* prevCur = heap->cur;
u8* newCur = &prevCur[ALIGN16(arg1 * size)];
u8* newCur = &heap->cur[ALIGN16(arg1 * size)];
if (&heap->base[heap->len] >= newCur) {
ret = prevCur;
ret = heap->cur;
heap->cur = newCur;
}
return ret;