aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/hdb.cpp3
-rw-r--r--engines/hdb/hdb.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index 2bb6b38b84..282cd81a63 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -36,6 +36,8 @@
namespace HDB {
+HDBGame* g_hdb;
+
HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc) {
_console = nullptr;
_systemInit = false;
@@ -49,7 +51,6 @@ HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst
HDBGame::~HDBGame() {
delete _console;
- delete g_hdb;
delete fileMan;
delete lua;
DebugMan.clearAllDebugChannels();
diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h
index 641a4f2cee..82028d8c77 100644
--- a/engines/hdb/hdb.h
+++ b/engines/hdb/hdb.h
@@ -103,7 +103,7 @@ private:
};
-static HDBGame *g_hdb;
+extern HDBGame *g_hdb;
}// End of namespace HDB