fix spy crashing things when disguised as a unit with fewer idle anims

This commit is contained in:
Chris Forbes
2010-12-04 11:02:53 +13:00
parent 05718f9e8e
commit 9c20fba4a0
3 changed files with 16 additions and 10 deletions

View File

@@ -46,13 +46,13 @@ namespace OpenRA.Mods.RA.Render
{
disguisedAsPlayer = target.Owner;
disguisedAsSprite = target.Trait<RenderSimple>().GetImage(target);
anim.ChangeImage(disguisedAsSprite);
anim.ChangeImage(disguisedAsSprite, "stand");
}
else
{
disguisedAsPlayer = null;
disguisedAsSprite = null;
anim.ChangeImage(GetImage(self));
anim.ChangeImage(GetImage(self), "stand");
}
}
}