mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-19 05:41:17 +00:00
Fix anim key construction (#199)
This commit is contained in:
parent
a9be411c48
commit
bcd0021bb1
@ -364,7 +364,7 @@ void LegoCarBuildAnimPresenter::FUN_10079160()
|
|||||||
if (StringEqualsPlatform(name)) {
|
if (StringEqualsPlatform(name)) {
|
||||||
m_unk0xc4 = data;
|
m_unk0xc4 = data;
|
||||||
if (m_unk0xc4->GetNumRotationKeys() == 0) {
|
if (m_unk0xc4->GetNumRotationKeys() == 0) {
|
||||||
LegoRotationKey* key = new LegoRotationKey();
|
LegoRotationKey* key = new LegoRotationKey[1];
|
||||||
m_unk0xc4->SetNumRotationKeys(1);
|
m_unk0xc4->SetNumRotationKeys(1);
|
||||||
m_unk0xc4->SetRotationKeys(key);
|
m_unk0xc4->SetRotationKeys(key);
|
||||||
}
|
}
|
||||||
@ -450,7 +450,7 @@ void LegoCarBuildAnimPresenter::FUN_100795d0(LegoChar* p_param)
|
|||||||
if (data) {
|
if (data) {
|
||||||
LegoMorphKey* oldMorphKeys = data->GetMorphKeys();
|
LegoMorphKey* oldMorphKeys = data->GetMorphKeys();
|
||||||
|
|
||||||
LegoMorphKey* newHideKey = new LegoMorphKey();
|
LegoMorphKey* newHideKey = new LegoMorphKey[1];
|
||||||
assert(newHideKey);
|
assert(newHideKey);
|
||||||
|
|
||||||
newHideKey->SetTime(0);
|
newHideKey->SetTime(0);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user