diff options
| author | MegaMech <7255464+MegaMech@users.noreply.github.com> | 2024-11-20 22:50:36 -0700 |
|---|---|---|
| committer | MegaMech <7255464+MegaMech@users.noreply.github.com> | 2024-11-20 22:50:36 -0700 |
| commit | 097a3ff550f24a8d56e0332438889724a99cc691 (patch) | |
| tree | 845bb0ba0a2de674f829dc8abf7bb528a4de95d9 /src/engine/courses/Course.cpp | |
| parent | e5d512b3e8340899cf9ef897e8b30904a468f0dd (diff) | |
Remove asserts
Diffstat (limited to 'src/engine/courses/Course.cpp')
| -rw-r--r-- | src/engine/courses/Course.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/courses/Course.cpp b/src/engine/courses/Course.cpp index bdec26404..a3c107f1a 100644 --- a/src/engine/courses/Course.cpp +++ b/src/engine/courses/Course.cpp @@ -117,7 +117,10 @@ void Course::Load() { // Extract packed DLs u8* packed = reinterpret_cast<u8*>(LOAD_ASSET_RAW(this->gfx)); Gfx* gfx = (Gfx*) allocate_memory(sizeof(Gfx) * this->gfxSize); // Size of unpacked DLs - assert(gfx != NULL); + if (gfx == NULL) { + printf("Failed to allocate course displaylist memory\n"); + } + gSegmentTable[7] = reinterpret_cast<uintptr_t>(&gfx[0]); displaylist_unpack(reinterpret_cast<uintptr_t *>(gfx), reinterpret_cast<uintptr_t>(packed), 0); |
