diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index eba7f86fd..dde1c80b8 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -620,7 +620,9 @@ bool AActor::SetState (FState *newstate, bool nofunction) if (ObjectFlags & OF_StateChanged) { // The action was an A_Jump-style function that wants to change the next state. ObjectFlags &= ~OF_StateChanged; + FState *saved = newstate; newstate = state; + state = saved; // we need this for comparison of sprites. tics = 0; // make sure we loop and set the new state properly continue; }