Fix bug in dynos level gen of custom behaviors
This commit is contained in:
parent
4159b7c5f5
commit
b856648d6e
|
@ -1737,7 +1737,7 @@ static void ParseLevelScriptSymbol(GfxData* aGfxData, DataNode<LevelScript>* aNo
|
||||||
aHead += (sizeof(_Ls) / sizeof(_Ls[0]));
|
aHead += (sizeof(_Ls) / sizeof(_Ls[0]));
|
||||||
} else if (foundModel) {
|
} else if (foundModel) {
|
||||||
u32 behIndex = DynOS_Lua_RememberVariable(aGfxData, aHead + 5, aNode->mTokens[topTokenIndex + 8]);
|
u32 behIndex = DynOS_Lua_RememberVariable(aGfxData, aHead + 5, aNode->mTokens[topTokenIndex + 8]);
|
||||||
LevelScript _Ls[] = { OBJECT_EXT(model, posX, posY, posZ, angleX, angleY, angleZ, behParam, beh) };
|
LevelScript _Ls[] = { OBJECT_EXT(model, posX, posY, posZ, angleX, angleY, angleZ, behParam, behIndex) };
|
||||||
memcpy(aHead, _Ls, sizeof(_Ls));
|
memcpy(aHead, _Ls, sizeof(_Ls));
|
||||||
aHead += (sizeof(_Ls) / sizeof(_Ls[0]));
|
aHead += (sizeof(_Ls) / sizeof(_Ls[0]));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue