aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/ai.h
diff options
context:
space:
mode:
authorNipun Garg2019-07-08 01:55:30 +0530
committerEugene Sandulenko2019-09-03 17:17:14 +0200
commit32465a119d4371093b686c72a7cd9efe00d1c91b (patch)
tree8f16c9f86070ddffe6999dda145e86cbe6ef76c9 /engines/hdb/ai.h
parent69303997aee1518b26eac27c60454bfb0633dc94 (diff)
downloadscummvm-rg350-32465a119d4371093b686c72a7cd9efe00d1c91b.tar.gz
scummvm-rg350-32465a119d4371093b686c72a7cd9efe00d1c91b.tar.bz2
scummvm-rg350-32465a119d4371093b686c72a7cd9efe00d1c91b.zip
HDB: Modify InvEnt to have AIEntity as member
Diffstat (limited to 'engines/hdb/ai.h')
-rw-r--r--engines/hdb/ai.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h
index 02a928831a..e8bd20f047 100644
--- a/engines/hdb/ai.h
+++ b/engines/hdb/ai.h
@@ -581,9 +581,9 @@ struct AnimTarget {
struct InvEnt {
uint16 keep;
- AIEntity *ent;
+ AIEntity ent;
- InvEnt() : keep(0), ent(NULL) {}
+ InvEnt() : keep(0) {}
};
struct DlvEnt {
@@ -1013,10 +1013,10 @@ public:
return _numInventory;
}
AIType getInvItemType(int which) {
- return _inventory[which].ent->type;
+ return _inventory[which].ent.type;
}
Tile *getInvItemGfx(int which) {
- return _inventory[which].ent->standdownGfx[0];
+ return _inventory[which].ent.standdownGfx[0];
}
AIEntity *getInvItem(int which);