From 5123a6b74b33313e4868460bea254bc94e262862 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 22 Apr 2012 02:14:01 +0000 Subject: [PATCH] - And this is what I get for not making sure it compiles... SVN r3577 (trunk) --- src/p_mobj.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index 0243137f9..44eadc623 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -4679,10 +4679,11 @@ void P_SpawnBlood (fixed_t x, fixed_t y, fixed_t z, angle_t dir, int damage, AAc { advance = 2; } + FActorInfo *ai = th->GetClass()->ActorInfo; for (; advance > 0; --advance) { // [RH] Do not set to a state we do not own. - if (th->SpawnState + advance < th->GetClass()->ActorInfo->OwnedStates + NumOwnedStates) + if (th->SpawnState + advance < ai->OwnedStates + ai->NumOwnedStates) { th->SetState(th->SpawnState + advance); break;