aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/hdb.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index 4c48e06e59..b9ae6c100f 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -692,6 +692,8 @@ Common::Error HDBGame::run() {
lua->executeFile("test.lua");
#endif
+ AIEntity *e;
+
while (!shouldQuit()) {
Common::Event event;
@@ -744,7 +746,7 @@ Common::Error HDBGame::run() {
_ai->processCines();
//_window->drawDialog();
- AIEntity *e = _ai->getPlayer();
+ e = _ai->getPlayer();
if (e && e->level < 2)
_ai->drawWayPoints();