diff options
author | yenatch <yenatch@gmail.com> | 2017-09-03 18:11:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-03 18:11:57 -0400 |
commit | 7ea0d462c49360351006f246f0a300aaa765a843 (patch) | |
tree | c930fe4733b8ae2bc02940ae6a35fbf73f933aca /src/malloc.c | |
parent | cbe13acff18405e99827df7c4a772d20b851f33b (diff) | |
parent | 5afd2d5bfb1ec117d80898d9ad1c2529d28a091c (diff) |
Merge pull request #22 from DizzyEggg/clean_up
bring pokeemerald to usable state
Diffstat (limited to 'src/malloc.c')
-rw-r--r-- | src/malloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/malloc.c b/src/malloc.c index fd9dc616a..948303c6f 100644 --- a/src/malloc.c +++ b/src/malloc.c @@ -1,5 +1,7 @@ #include "global.h" +EWRAM_DATA u8 gHeap[0x1C000] = {0}; + static void *sHeapStart; static u32 sHeapSize; @@ -67,7 +69,7 @@ void *AllocInternal(void *heapStart, u32 size) // size, so split the rest into a separate block. foundBlockSize -= sizeof(struct MemBlock); foundBlockSize -= size; - + splitBlock = (struct MemBlock *)(pos->data + size); pos->flag = TRUE; |