aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/agi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agi/agi.cpp')
-rw-r--r--engines/agi/agi.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp
index b293a8e9e5..55872940f5 100644
--- a/engines/agi/agi.cpp
+++ b/engines/agi/agi.cpp
@@ -394,7 +394,6 @@ AgiEngine::AgiEngine(OSystem *syst, const AGIGameDescription *gameDesc) : AgiBas
resetControllers();
- setupOpcodes();
_game._curLogic = NULL;
_veryFirstInitialCycle = true;
_instructionCounter = 0;
@@ -498,6 +497,8 @@ void AgiEngine::initialize() {
} else {
warning("Could not open AGI game");
}
+ // finally set up actual VM opcodes, because we should now have figured out the right AGI version
+ setupOpCodes(getVersion());
debugC(2, kDebugLevelMain, "Init sound");
}