[-] Fixed bug with WaitBackup animation

This commit is contained in:
cybermind 2015-03-08 00:19:35 +05:00
parent d3c6d53a4e
commit bbcecfc5a2

View file

@ -496,7 +496,7 @@ static const CAnimation *Advance(const CAnimation *anim, int n)
unit.WaitBackup.CurrAnim = AnimationsArray[animIndex];
} else if (!strcmp(value, "anim")) {
const int animIndex = LuaToNumber(l, luaIndex, j + 1);
unit.WaitBackup.Anim = Advance(unit.Anim.CurrAnim, animIndex);
unit.WaitBackup.Anim = Advance(unit.WaitBackup.CurrAnim, animIndex);
} else if (!strcmp(value, "unbreakable")) {
unit.WaitBackup.Unbreakable = 1;
--j;