diff options
Diffstat (limited to 'engines/cine')
-rw-r--r-- | engines/cine/cine.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/cine/cine.cpp b/engines/cine/cine.cpp index b5b83211c8..4c89bbbe1e 100644 --- a/engines/cine/cine.cpp +++ b/engines/cine/cine.cpp @@ -97,7 +97,6 @@ int CineEngine::init() { } int CineEngine::go() { - gfxInit(); CursorMan.showMouse(true); mainLoop(1); gfxDestroy(); @@ -110,6 +109,7 @@ void CineEngine::initialize() { setupOpcodes(); initLanguage(g_cine->getLanguage()); + gfxInit(); textDataPtr = (byte *)malloc(8000); @@ -128,11 +128,11 @@ void CineEngine::initialize() { loadErrmessDat("errmess.dat"); } - memset(objectTable, 0, sizeof(objectTable)); - memset(globalVars, 0, sizeof(globalVars)); - memset(scriptTable, 0, sizeof(scriptTable)); - memset(messageTable, 0, sizeof(scriptTable)); - memset(relTable, 0, sizeof(scriptTable)); + memset(objectTable, 0, ARRAYSIZE(objectTable)); + memset(globalVars, 0, ARRAYSIZE(globalVars)); + memset(scriptTable, 0, ARRAYSIZE(scriptTable)); + memset(messageTable, 0, ARRAYSIZE(scriptTable)); + memset(relTable, 0, ARRAYSIZE(scriptTable)); for (int i = 0; i < NUM_MAX_ANIMDATA; i++) { animDataTable[i].ptr1 = animDataTable[i].ptr2 = NULL; |