diff --git a/src/thingdef/thingdef_states.cpp b/src/thingdef/thingdef_states.cpp index 9c88e87d9..500e215f3 100644 --- a/src/thingdef/thingdef_states.cpp +++ b/src/thingdef/thingdef_states.cpp @@ -325,7 +325,7 @@ do_stop: sc.ScriptError("Negative jump offsets are not allowed"); } - if (x > 0) + if (v > 0) { x = new FxStateByIndex(bag.statedef.GetStateCount() + v, sc); }