aboutsummaryrefslogtreecommitdiff
path: root/scumm/script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r--scumm/script.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp
index 8f631dee6f..809ecea2c4 100644
--- a/scumm/script.cpp
+++ b/scumm/script.cpp
@@ -711,15 +711,11 @@ void ScummEngine::stopObjectCode() {
}
void ScummEngine::runInventoryScript(int i) {
- if (_version <= 2) {
- redrawV2Inventory();
- } else {
- int args[24];
- memset(args, 0, sizeof(args));
- args[0] = i;
- if (VAR(VAR_INVENTORY_SCRIPT)) {
- runScript(VAR(VAR_INVENTORY_SCRIPT), 0, 0, args);
- }
+ int args[24];
+ memset(args, 0, sizeof(args));
+ args[0] = i;
+ if (VAR(VAR_INVENTORY_SCRIPT)) {
+ runScript(VAR(VAR_INVENTORY_SCRIPT), 0, 0, args);
}
}