From d7126861223f3415a81e11a8e7a98ef64e6256ed Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 10 Feb 2016 21:56:45 +0100 Subject: [PATCH] - fixed: A_CountdownArg could no longer access the first arg. The latest bit of refactoring turned a '<0' check into '>0', while it should have been '>=0'. --- src/thingdef/thingdef_codeptr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index a3f7c0887..1e15a5c33 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -3235,7 +3235,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CountdownArg) PARAM_INT(argnum); PARAM_STATE_OPT(state) { state = self->FindState(NAME_Death); } - if (argnum > 0 && argnum < (int)countof(self->args)) + if (argnum >= 0 && argnum < (int)countof(self->args)) { if (!self->args[argnum]--) {