aboutsummaryrefslogtreecommitdiff
path: root/engines/toltecs/toltecs.cpp
diff options
context:
space:
mode:
authorBenjamin Haisch2009-07-25 20:24:53 +0000
committerWillem Jan Palenstijn2011-11-20 22:43:08 +0100
commit3c49d36d5fbd9eccd94c6d084422d6aa83ceb3e3 (patch)
treea3fc160151ba9f294ae873e8290dd40b868d1a0b /engines/toltecs/toltecs.cpp
parentd6edbe97c91f54bb84ebc3b1cb14e6131cdf04b7 (diff)
downloadscummvm-rg350-3c49d36d5fbd9eccd94c6d084422d6aa83ceb3e3.tar.gz
scummvm-rg350-3c49d36d5fbd9eccd94c6d084422d6aa83ceb3e3.tar.bz2
scummvm-rg350-3c49d36d5fbd9eccd94c6d084422d6aa83ceb3e3.zip
TOLTECS: Fix compilation.
Diffstat (limited to 'engines/toltecs/toltecs.cpp')
-rw-r--r--engines/toltecs/toltecs.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/toltecs/toltecs.cpp b/engines/toltecs/toltecs.cpp
index a984ca7676..214b71da03 100644
--- a/engines/toltecs/toltecs.cpp
+++ b/engines/toltecs/toltecs.cpp
@@ -22,6 +22,7 @@
*/
#include "common/events.h"
+#include "common/EventRecorder.h"
#include "common/keyboard.h"
#include "common/file.h"
#include "common/savefile.h"
@@ -67,7 +68,7 @@ ToltecsEngine::ToltecsEngine(OSystem *syst, const ToltecsGameDescription *gameDe
_mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, ConfMan.getInt("music_volume"));
_rnd = new Common::RandomSource();
- syst->getEventManager()->registerRandomSource(*_rnd, "toltecs");
+ g_eventRec.registerRandomSource(*_rnd, "toltecs");
int cd_num = ConfMan.getInt("cdrom");
if (cd_num >= 0)