- Fixed: SetMarineSprite tried to access the first owned state of the actor's class - but the weapon carrying marines own no states.

SVN r2117 (trunk)
This commit is contained in:
Christoph Oelckers 2010-01-18 20:15:04 +00:00
parent 7183a2f751
commit 16c638a598

View file

@ -104,7 +104,7 @@ void AScriptedMarine::Tick ()
Super::Tick (); Super::Tick ();
// Override the standard sprite, if desired // Override the standard sprite, if desired
if (SpriteOverride != 0 && sprite == GetClass()->ActorInfo->OwnedStates[0].sprite) if (SpriteOverride != 0 && sprite == SpawnState->sprite)
{ {
sprite = SpriteOverride; sprite = SpriteOverride;
} }