mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Fix invalid mario surface pointer on act select
This commit is contained in:
parent
9282f21f24
commit
ef2112759e
1 changed files with 5 additions and 0 deletions
|
|
@ -401,6 +401,11 @@ static void level_cmd_alloc_level_pool(void) {
|
|||
static void level_cmd_free_level_pool(void) {
|
||||
s32 i;
|
||||
|
||||
// these pointers would be invalid on the act selector menu
|
||||
gMarioStates[0].wall = NULL;
|
||||
gMarioStates[0].ceil = NULL;
|
||||
gMarioStates[0].floor = NULL;
|
||||
|
||||
if (!sFinishedLoadingPerm) {
|
||||
sFinishedLoadingPerm = true;
|
||||
// make sure we don't free the pool with the permanent models
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue