aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/logic.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/logic.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/logic.h')
-rw-r--r--engines/agi/logic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/agi/logic.h b/engines/agi/logic.h
index b46362056f..5e8700d9a8 100644
--- a/engines/agi/logic.h
+++ b/engines/agi/logic.h
@@ -35,6 +35,8 @@ struct AgiLogic {
int cIP; /**< current IP */
int numTexts; /**< number of messages */
const char **texts; /**< message list */
+
+ AgiLogic() : data(nullptr), size(0), sIP(0), cIP(0), numTexts(0), texts(nullptr) {}
};
} // End of namespace Agi