aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2008-03-15 21:33:01 +0000
committerTorbjörn Andersson2008-03-15 21:33:01 +0000
commit707413227644b56e69b4632dc5b2a7534847d2b9 (patch)
tree6f2e5f8d81934c1ca39b66078c79a49482fce579
parent3da00ccc798ea18b523c2d79a7c58ee00783b365 (diff)
downloadscummvm-rg350-707413227644b56e69b4632dc5b2a7534847d2b9.tar.gz
scummvm-rg350-707413227644b56e69b4632dc5b2a7534847d2b9.tar.bz2
scummvm-rg350-707413227644b56e69b4632dc5b2a7534847d2b9.zip
Fixed warning about unused variable.
svn-id: r31135
-rw-r--r--engines/kyra/script_v2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/script_v2.cpp b/engines/kyra/script_v2.cpp
index 6a2b596cf3..afaaee213d 100644
--- a/engines/kyra/script_v2.cpp
+++ b/engines/kyra/script_v2.cpp
@@ -335,7 +335,7 @@ int KyraEngine_v2::o2_removeItemFromInventory(ScriptState *script) {
debugC(3, kDebugLevelScriptFuncs, "o2_removeItemFromInventory(%p) (%d)", (const void *)script, stackPos(0));
uint16 item = stackPos(0);
int slot = -1;
- while ((slot = getInventoryItemSlot(stackPos(0))) != -1)
+ while ((slot = getInventoryItemSlot(item)) != -1)
removeItemFromInventory(slot);
return 0;
}