Fix CustomInventory never succeeding

- A != should have been ==.
This commit is contained in:
Randy Heit 2016-02-19 22:09:35 -06:00
parent 4770dc2dfb
commit c3432a1ddb
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ bool ACustomInventory::CallStateChain (AActor *actor, FState *state)
stack.Call(state->ActionFunc, params, countof(params), wantret, numret); stack.Call(state->ActionFunc, params, countof(params), wantret, numret);
// As long as even one state succeeds, the whole chain succeeds unless aborted below. // As long as even one state succeeds, the whole chain succeeds unless aborted below.
// A state that wants to jump does not count as "succeeded". // A state that wants to jump does not count as "succeeded".
if (nextstate != NULL) if (nextstate == NULL)
{ {
result |= retval; result |= retval;
} }