- 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'.
This commit is contained in:
Christoph Oelckers 2016-02-10 21:56:45 +01:00
parent 7e45c49c2f
commit d712686122
1 changed files with 1 additions and 1 deletions

View File

@ -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]--)
{