mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- 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:
parent
7e45c49c2f
commit
d712686122
1 changed files with 1 additions and 1 deletions
|
@ -3235,7 +3235,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CountdownArg)
|
||||||
PARAM_INT(argnum);
|
PARAM_INT(argnum);
|
||||||
PARAM_STATE_OPT(state) { state = self->FindState(NAME_Death); }
|
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]--)
|
if (!self->args[argnum]--)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue