From c3432a1ddb8432a442c6923eb030170d3eafd3ba Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 19 Feb 2016 22:09:35 -0600 Subject: [PATCH] Fix CustomInventory never succeeding - A != should have been ==. --- 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 6386ccfcb..7b5f33875 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -165,7 +165,7 @@ bool ACustomInventory::CallStateChain (AActor *actor, FState *state) stack.Call(state->ActionFunc, params, countof(params), wantret, numret); // 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". - if (nextstate != NULL) + if (nextstate == NULL) { result |= retval; }