mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-11 18:51:16 +00:00
Fix UBSAN entering the petrol station car building minigame
This commit is contained in:
parent
d0f4725f0f
commit
2b1aaeb883
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user