aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNipun Garg2019-06-21 07:49:23 +0530
committerEugene Sandulenko2019-09-03 17:16:53 +0200
commitffa56e7c4b98fc72f40ac45bb2ec77b4f3194a59 (patch)
treecd0237b9d636eba47000f9501a0290531d601e19 /engines
parent3969a805abd803bb52b3589aa20f79654a8ea3e1 (diff)
downloadscummvm-rg350-ffa56e7c4b98fc72f40ac45bb2ec77b4f3194a59.tar.gz
scummvm-rg350-ffa56e7c4b98fc72f40ac45bb2ec77b4f3194a59.tar.bz2
scummvm-rg350-ffa56e7c4b98fc72f40ac45bb2ec77b4f3194a59.zip
HDB: Fix type of *draw
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/ai-waypoint.cpp2
-rw-r--r--engines/hdb/ai.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/hdb/ai-waypoint.cpp b/engines/hdb/ai-waypoint.cpp
index 88a0c44d13..3887b972b8 100644
--- a/engines/hdb/ai-waypoint.cpp
+++ b/engines/hdb/ai-waypoint.cpp
@@ -29,7 +29,7 @@ void AI::clearWaypoints() {
_numWaypoints = 0;
}
-void *AI::getStandFrameDir(AIEntity *e) {
+Tile *AI::getStandFrameDir(AIEntity *e) {
switch (e->dir) {
case DIR_DOWN:
if (e->standdownFrames)
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h
index 6994a81729..ad5e43ca2f 100644
--- a/engines/hdb/ai.h
+++ b/engines/hdb/ai.h
@@ -341,7 +341,7 @@ struct AIEntity {
AIState state;
AIDir dir;
- void *draw; // Current frame to draw
+ Tile *draw; // Current frame to draw
void (*aiInit)(AIEntity *e); // func ptr to init routine
void (*aiInit2)(AIEntity *e); // func ptr to init2 routine - graphic init only (this for LoadGame functionality)
@@ -649,7 +649,7 @@ public:
// Waypoint & Movement Functions
void lookAtXY(int x, int y);
void clearWaypoints();
- void *getStandFrameDir(AIEntity *e);
+ Tile *getStandFrameDir(AIEntity *e);
// Inventory Functions
bool addToInventory(AIEntity *e);