aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sci.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/sci.cpp')
-rw-r--r--engines/sci/sci.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index a0fad0adb2..9164e60108 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -136,7 +136,6 @@ Common::Error SciEngine::run() {
_kernel = new Kernel(_resourceManager);
_vocabulary = new Vocabulary(_resourceManager);
- script_adjust_opcode_formats(_resourceManager->sciVersion());
_gamestate = new EngineState(_resourceManager, flags);
@@ -149,6 +148,8 @@ Common::Error SciEngine::run() {
return Common::kUnknownError;
}
+ script_adjust_opcode_formats(_gamestate);
+
// Set the savegame dir (actually, we set it to a fake value,
// since we cannot let the game control where saves are stored)
script_set_gamestate_save_dir(_gamestate, "/");