aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/scumm/script.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/scumm/script.cpp b/engines/scumm/script.cpp
index 59dfc229f2..d025ede47b 100644
--- a/engines/scumm/script.cpp
+++ b/engines/scumm/script.cpp
@@ -755,13 +755,13 @@ void ScummEngine::stopObjectCode() {
}
void ScummEngine::runInventoryScript(int i) {
- int args[NUM_SCRIPT_LOCALS];
- memset(args, 0, sizeof(args));
- args[0] = i;
if (VAR(VAR_INVENTORY_SCRIPT)) {
if (_game.id == GID_INDY3 && _game.platform == Common::kPlatformMacintosh) {
inventoryScriptIndy3Mac();
} else {
+ int args[NUM_SCRIPT_LOCALS];
+ memset(args, 0, sizeof(args));
+ args[0] = i;
runScript(VAR(VAR_INVENTORY_SCRIPT), 0, 0, args);
}
}