aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/ai.h
diff options
context:
space:
mode:
authorD G Turner2019-09-13 23:05:22 +0100
committerD G Turner2019-09-13 23:06:32 +0100
commitc0d6a8fc7a051f31c0cf209b74c213b1d9643ca8 (patch)
tree303f3819d5bfb351375399ab0d01b6c135ea141e /engines/hdb/ai.h
parentbc7d30fb07f85e2a099cbebded3f48e0dc131c15 (diff)
downloadscummvm-rg350-c0d6a8fc7a051f31c0cf209b74c213b1d9643ca8.tar.gz
scummvm-rg350-c0d6a8fc7a051f31c0cf209b74c213b1d9643ca8.tar.bz2
scummvm-rg350-c0d6a8fc7a051f31c0cf209b74c213b1d9643ca8.zip
HDB: Further Fixes for GCC Compiler Warnings
Diffstat (limited to 'engines/hdb/ai.h')
-rw-r--r--engines/hdb/ai.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h
index 86c3709aeb..37fc7efb3c 100644
--- a/engines/hdb/ai.h
+++ b/engines/hdb/ai.h
@@ -634,6 +634,7 @@ struct DlvEnt {
destTextName[0] = 0;
destGfxName[0] = 0;
}
+
~DlvEnt() {
itemGfx = NULL;
destGfx = NULL;
@@ -765,7 +766,17 @@ struct Bridge {
uint16 delay;
uint16 anim;
- Bridge() : x(0), y(0), dir(DIR_NONE), delay(0), anim(0) {}
+ void reset() {
+ x = 0;
+ y = 0;
+ dir = DIR_NONE;
+ delay = 0;
+ anim = 0;
+ }
+
+ Bridge() {
+ reset();
+ }
};
struct CineCommand {