diff options
author | D G Turner | 2019-08-25 07:27:21 +0100 |
---|---|---|
committer | D G Turner | 2019-08-25 07:27:21 +0100 |
commit | 50c5177eb002da0d809f16941643a53677ec324c (patch) | |
tree | bb15f5cbe6d1fe5b870458cb3eca4c8ff826c884 /engines/agi/agi.h | |
parent | 482f835ad6c1260fb2fc2609ecca70f3ac618fc5 (diff) | |
download | scummvm-rg350-50c5177eb002da0d809f16941643a53677ec324c.tar.gz scummvm-rg350-50c5177eb002da0d809f16941643a53677ec324c.tar.bz2 scummvm-rg350-50c5177eb002da0d809f16941643a53677ec324c.zip |
AGI: Fix Remaining GCC Compiler Warnings
These were the remaining memset on non-trivial structure warnings.
Diffstat (limited to 'engines/agi/agi.h')
-rw-r--r-- | engines/agi/agi.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/agi/agi.h b/engines/agi/agi.h index 8627d2d8b1..6923b2e7cf 100644 --- a/engines/agi/agi.h +++ b/engines/agi/agi.h @@ -375,7 +375,15 @@ struct AgiDir { // 0x40 = was compressed uint8 flags; - AgiDir() : volume(0), offset(0), len(0), clen(0), flags(0) {} + void reset() { + volume = 0; + offset = 0; + len = 0; + clen = 0; + flags = 0; + } + + AgiDir() { reset(); } }; struct AgiBlock { |