Fix UBSAN entering the petrol station car building minigame (#1533)

This commit is contained in:
Anonymous Maarten
2025-05-31 02:19:11 +02:00
committed by GitHub
parent e813a12a4a
commit 941bc6ffa9

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;
}
}