aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/agos.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agos/agos.cpp')
-rw-r--r--engines/agos/agos.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/agos/agos.cpp b/engines/agos/agos.cpp
index dd60ff40dd..18341c5815 100644
--- a/engines/agos/agos.cpp
+++ b/engines/agos/agos.cpp
@@ -616,6 +616,7 @@ void AGOSEngine::setupGame() {
_variableArray = (int16 *)calloc(_numVars, sizeof(int16));
_variableArray2 = (int16 *)calloc(_numVars, sizeof(int16));
+ _variableArrayPtr = _variableArray;
setupOpcodes();
@@ -632,8 +633,6 @@ void AGOSEngine::setupGame() {
_noOverWrite = 0xFFFF;
_stringIdLocalMin = 1;
-
- _variableArrayPtr = _variableArray;
}
AGOSEngine::~AGOSEngine() {