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/picture.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/picture.h')
-rw-r--r-- | engines/agi/picture.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/agi/picture.h b/engines/agi/picture.h index 1380aae3fc..dc6e5822bf 100644 --- a/engines/agi/picture.h +++ b/engines/agi/picture.h @@ -35,7 +35,12 @@ struct AgiPicture { uint32 flen; /**< size of raw data */ uint8 *rdata; /**< raw vector image data */ - AgiPicture() : flen(0), rdata(nullptr) {} + void reset() { + flen = 0; + rdata = nullptr; + } + + AgiPicture() { reset(); } }; // AGI picture version |