Fix UBSAN entering the petrol station car building minigame

This commit is contained in:
Anonymous Maarten 2025-05-31 02:08:40 +02:00
parent d0f4725f0f
commit 2b1aaeb883

View File

@ -457,7 +457,7 @@ void LegoCarBuildAnimPresenter::FUN_100795d0(LegoChar* p_param)
data->SetNumMorphKeys(1);
data->SetMorphKeys(newHideKey);
delete oldMorphKeys;
delete[] oldMorphKeys;
}
}
@ -473,7 +473,7 @@ void LegoCarBuildAnimPresenter::FUN_10079680(LegoChar* p_param)
data->SetNumMorphKeys(0);
data->SetMorphKeys(NULL);
delete oldMorphKeys;
delete[] oldMorphKeys;
}
}