Fix anim key construction (#199)

This commit is contained in:
Christian Semmler 2025-05-29 16:11:43 -07:00 committed by GitHub
parent a9be411c48
commit bcd0021bb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -364,7 +364,7 @@ void LegoCarBuildAnimPresenter::FUN_10079160()
if (StringEqualsPlatform(name)) {
m_unk0xc4 = data;
if (m_unk0xc4->GetNumRotationKeys() == 0) {
LegoRotationKey* key = new LegoRotationKey();
LegoRotationKey* key = new LegoRotationKey[1];
m_unk0xc4->SetNumRotationKeys(1);
m_unk0xc4->SetRotationKeys(key);
}
@ -450,7 +450,7 @@ void LegoCarBuildAnimPresenter::FUN_100795d0(LegoChar* p_param)
if (data) {
LegoMorphKey* oldMorphKeys = data->GetMorphKeys();
LegoMorphKey* newHideKey = new LegoMorphKey();
LegoMorphKey* newHideKey = new LegoMorphKey[1];
assert(newHideKey);
newHideKey->SetTime(0);