From f2125ea4206529095a5ee6e3c8650dd3fddaf3ed Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 17 Feb 2016 12:36:56 +0100 Subject: [PATCH] - this needs a return value... --- src/thingdef/thingdef_codeptr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index fa2a336d44..d9eba89ec7 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -3276,7 +3276,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CountdownArg) PARAM_INT(cnt); PARAM_STATE_OPT(state) { state = self->FindState(NAME_Death); } - if (cnt<0 || cnt >= 5) return; + if (cnt<0 || cnt >= 5) return 0; if (!self->args[cnt]--) { if (self->flags&MF_MISSILE) @@ -3292,6 +3292,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CountdownArg) self->SetState(state); } } + return 0; } //============================================================================