fix spy crashing things when disguised as a unit with fewer idle anims
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user