diff --git a/src/interpreter_extra.cc b/src/interpreter_extra.cc index a536b0e..b5820ed 100644 --- a/src/interpreter_extra.cc +++ b/src/interpreter_extra.cc @@ -3006,6 +3006,8 @@ static void opCritterGetInventoryObject(Program* program) if (critter == gDude) { if (interfaceGetCurrentHand() != HAND_LEFT) { programStackPushPointer(program, critterGetItem2(critter)); + } else { + programStackPushPointer(program, NULL); } } else { programStackPushPointer(program, critterGetItem2(critter)); @@ -3015,6 +3017,8 @@ static void opCritterGetInventoryObject(Program* program) if (critter == gDude) { if (interfaceGetCurrentHand() == HAND_LEFT) { programStackPushPointer(program, critterGetItem1(critter)); + } else { + programStackPushPointer(program, NULL); } } else { programStackPushPointer(program, critterGetItem1(critter));