aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/toltecs/toltecs.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/toltecs/toltecs.cpp b/engines/toltecs/toltecs.cpp
index 4f9fbae94f..41d626a027 100644
--- a/engines/toltecs/toltecs.cpp
+++ b/engines/toltecs/toltecs.cpp
@@ -65,8 +65,7 @@ ToltecsEngine::ToltecsEngine(OSystem *syst, const ToltecsGameDescription *gameDe
_mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, ConfMan.getInt("sfx_volume"));
_mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, ConfMan.getInt("music_volume"));
- _rnd = new Common::RandomSource();
- g_eventRec.registerRandomSource(*_rnd, "toltecs");
+ _rnd = new Common::RandomSource("toltecs");
}
ToltecsEngine::~ToltecsEngine() {