aboutsummaryrefslogtreecommitdiff
path: root/scumm/scumm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/scumm.cpp')
-rw-r--r--scumm/scumm.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp
index fa62a4be26..53d2a954f0 100644
--- a/scumm/scumm.cpp
+++ b/scumm/scumm.cpp
@@ -679,6 +679,8 @@ ScummEngine::ScummEngine(GameDetector *detector, OSystem *syst, const ScummGameS
_costumeRenderer = NULL;
_2byteFontPtr = 0;
_V1_talkingActor = 0;
+ _WizNumPolygons = 200; // Used as constant in original
+ _WizPolygons = NULL;
_actorClipOverride.top = 0;
_actorClipOverride.bottom = 479;
@@ -1391,6 +1393,13 @@ void ScummEngine::scummInit() {
for (i = 0; i < 512; i++)
_keyDownMap[i] = false;
+ if (_heversion >= 70) {
+ if (_WizPolygons)
+ free (_WizPolygons);
+
+ _WizPolygons = (WizPolygon *)calloc(_WizNumPolygons, sizeof(WizPolygon));
+ }
+
initScummVars();
_lastSaveTime = _system->get_msecs();