From 365805afe8a45e5e04eb549a94cc923bf55acd0d Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sun, 24 Jul 2022 11:11:56 +0300 Subject: [PATCH] Fix opRemoveObjectFromInventory arguments order Closes #83 --- src/interpreter_extra.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interpreter_extra.cc b/src/interpreter_extra.cc index a7c1b83..20d1fb9 100644 --- a/src/interpreter_extra.cc +++ b/src/interpreter_extra.cc @@ -1685,8 +1685,8 @@ static void opAddObjectToInventory(Program* program) // 0x456708 static void opRemoveObjectFromInventory(Program* program) { - Object* owner = static_cast(programStackPopPointer(program)); Object* item = static_cast(programStackPopPointer(program)); + Object* owner = static_cast(programStackPopPointer(program)); if (owner == NULL || item == NULL) { return;