diff options
author | D G Turner | 2019-09-13 22:41:41 +0100 |
---|---|---|
committer | D G Turner | 2019-09-13 22:41:41 +0100 |
commit | c01598484e3ad00b231e54a430db224cefc65da0 (patch) | |
tree | aaf27bb632cb5822f026a411608faa15e4b6a97c /engines/hdb/ai.h | |
parent | 1a3d24f220e215f806080309876982eb805da12b (diff) | |
download | scummvm-rg350-c01598484e3ad00b231e54a430db224cefc65da0.tar.gz scummvm-rg350-c01598484e3ad00b231e54a430db224cefc65da0.tar.bz2 scummvm-rg350-c01598484e3ad00b231e54a430db224cefc65da0.zip |
HDB: Fix Some GCC Compiler Warnings
These were of the type memset of a complex structure.
Diffstat (limited to 'engines/hdb/ai.h')
-rw-r--r-- | engines/hdb/ai.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index 572ab79186..86c3709aeb 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -456,7 +456,7 @@ struct AIEntity { int16 moverightFrames; Tile *moverightGfx[kMaxAnimFrames]; - AIEntity() { + void reset() { luaFuncInit[0] = 0; luaFuncAction[0] = 0; luaFuncUse[0] = 0; @@ -543,6 +543,11 @@ struct AIEntity { moverightGfx[i] = NULL; } } + + AIEntity() { + reset(); + } + ~AIEntity() { } @@ -602,7 +607,14 @@ struct InvEnt { uint16 keep; AIEntity ent; - InvEnt() : keep(0) {} + void reset() { + keep = 0; + ent.reset(); + } + + InvEnt() { + reset(); + } }; struct DlvEnt { |