aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichiesams2013-08-16 12:17:29 -0500
committerrichiesams2013-08-16 12:17:29 -0500
commite0937a12cd47201a6dce6822e20657b2df5785af (patch)
tree05fe29c4b807ab0466970086f00781c0e502ef91
parentaf0a58ecda26f12c630db759667d7adc79e733d6 (diff)
downloadscummvm-rg350-e0937a12cd47201a6dce6822e20657b2df5785af.tar.gz
scummvm-rg350-e0937a12cd47201a6dce6822e20657b2df5785af.tar.bz2
scummvm-rg350-e0937a12cd47201a6dce6822e20657b2df5785af.zip
ZVISION: Move _cursorManager construction after the folder directories have been registered with SearchMan
-rw-r--r--engines/zvision/zvision.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp
index ff234bf3fe..080c763342 100644
--- a/engines/zvision/zvision.cpp
+++ b/engines/zvision/zvision.cpp
@@ -69,7 +69,6 @@ ZVision::ZVision(OSystem *syst, const ZVisionGameDescription *gameDesc)
// Create managers
_scriptManager = new ScriptManager(this);
_renderManager = new RenderManager(_system, _workingWindow, _pixelFormat);
- _cursorManager = new CursorManager(this, &_pixelFormat);
debug("ZVision::ZVision");
}
@@ -116,6 +115,8 @@ void ZVision::initialize() {
initGraphics(WINDOW_WIDTH, WINDOW_HEIGHT, true, &_pixelFormat);
+ // CursorManager must be created after all the directories have been added
+ _cursorManager = new CursorManager(this, &_pixelFormat);
_cursorManager->initialize();
_scriptManager->initialize();