aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/picture.h
diff options
context:
space:
mode:
authorD G Turner2019-08-25 05:55:54 +0100
committerD G Turner2019-08-25 05:55:54 +0100
commit482f835ad6c1260fb2fc2609ecca70f3ac618fc5 (patch)
tree87f96e0681908ba8261b6f30a5470d3b7b0186df /engines/agi/picture.h
parent4b6578603d1195f04be230870ab003ed0698d936 (diff)
downloadscummvm-rg350-482f835ad6c1260fb2fc2609ecca70f3ac618fc5.tar.gz
scummvm-rg350-482f835ad6c1260fb2fc2609ecca70f3ac618fc5.tar.bz2
scummvm-rg350-482f835ad6c1260fb2fc2609ecca70f3ac618fc5.zip
AGI: Fix GCC Compiler Warnings from memset of Game State Structures
This fixes these, but adding constructors causes further memset usage warnings on the structures which are now "non-trivial" due to the addition of constructors. Should be able to fix by repeating this process to remove further memset usage.
Diffstat (limited to 'engines/agi/picture.h')
-rw-r--r--engines/agi/picture.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/agi/picture.h b/engines/agi/picture.h
index 2cb5bfabc8..1380aae3fc 100644
--- a/engines/agi/picture.h
+++ b/engines/agi/picture.h
@@ -34,6 +34,8 @@ namespace Agi {
struct AgiPicture {
uint32 flen; /**< size of raw data */
uint8 *rdata; /**< raw vector image data */
+
+ AgiPicture() : flen(0), rdata(nullptr) {}
};
// AGI picture version