From 16c638a598af98b41e6c377fe6953e2eae7880fb Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 18 Jan 2010 20:15:04 +0000 Subject: [PATCH] - 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) --- src/g_doom/a_scriptedmarine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_doom/a_scriptedmarine.cpp b/src/g_doom/a_scriptedmarine.cpp index 701a0930f..150b7eb79 100644 --- a/src/g_doom/a_scriptedmarine.cpp +++ b/src/g_doom/a_scriptedmarine.cpp @@ -104,7 +104,7 @@ void AScriptedMarine::Tick () Super::Tick (); // Override the standard sprite, if desired - if (SpriteOverride != 0 && sprite == GetClass()->ActorInfo->OwnedStates[0].sprite) + if (SpriteOverride != 0 && sprite == SpawnState->sprite) { sprite = SpriteOverride; }