Fix crash with dynamic surfaces
This commit is contained in:
parent
45dbaa7468
commit
67966c53a0
1 changed files with 4 additions and 0 deletions
|
@ -634,6 +634,10 @@ void load_area_terrain(s16 index, s16 *data, s8 *surfaceRooms, s16 *macroObjects
|
|||
alloc_only_pool_clear(sDynamicSurfaceNodePool);
|
||||
alloc_only_pool_clear(sDynamicSurfacePool);
|
||||
sStaticSurfaceLoadComplete = FALSE;
|
||||
|
||||
// Originally they forgot to clear this matrix,
|
||||
// results in segfaults if this is not done.
|
||||
clear_dynamic_surfaces();
|
||||
#endif
|
||||
|
||||
clear_static_surfaces();
|
||||
|
|
Loading…
Add table
Reference in a new issue