aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/hdb.cpp5
-rw-r--r--engines/hdb/hdb.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index 430fd8d82c..b313e7c166 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -46,7 +46,7 @@ HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst
_drawMan = new DrawMan;
_lua = new LuaScript;
_map = new Map;
- //mapLoader = new MapLoader;
+ _rnd = new Common::RandomSource("hdb");
DebugMan.addDebugChannel(kDebugExample1, "Example1", "This is just an example to test");
DebugMan.addDebugChannel(kDebugExample2, "Example2", "This is also an example");
@@ -58,7 +58,8 @@ HDBGame::~HDBGame() {
delete _drawMan;
delete _lua;
delete _map;
- //delete mapLoader;
+ delete _rnd;
+
DebugMan.clearAllDebugChannels();
}
diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h
index 8d9aca9554..447c6809ea 100644
--- a/engines/hdb/hdb.h
+++ b/engines/hdb/hdb.h
@@ -29,6 +29,7 @@
#include "common/file.h"
#include "common/events.h"
#include "common/str.h"
+#include "common/random.h"
#include "gui/debugger.h"
#include "engines/engine.h"
@@ -87,6 +88,9 @@ public:
LuaScript *_lua;
Map *_map;
+ // Random Source
+ Common::RandomSource *_rnd;
+
// Game related members;
bool init();