mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-22 16:04:17 +00:00
Fix UBSAN entering the petrol station car building minigame (#1533)
This commit is contained in:

committed by
GitHub

parent
e813a12a4a
commit
941bc6ffa9
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user