diff options
Diffstat (limited to 'engines/mohawk/riven.cpp')
-rw-r--r-- | engines/mohawk/riven.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp index cd1e71564c..d15a082469 100644 --- a/engines/mohawk/riven.cpp +++ b/engines/mohawk/riven.cpp @@ -25,6 +25,7 @@ #include "common/config-manager.h" #include "common/events.h" +#include "common/EventRecorder.h" #include "common/keyboard.h" #include "mohawk/graphics.h" @@ -60,6 +61,7 @@ MohawkEngine_Riven::~MohawkEngine_Riven() { delete[] _vars; delete _loadDialog; delete _optionsDialog; + delete _rnd; _cardData.scripts.clear(); } @@ -79,6 +81,9 @@ Common::Error MohawkEngine_Riven::run() { _loadDialog->setSaveMode(false); _optionsDialog = new RivenOptionsDialog(this); + _rnd = new Common::RandomSource(); + g_eventRec.registerRandomSource(*_rnd, "riven"); + initVars(); // Open extras.mhk for common images (non-existant in the demo) |