aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/logic.h
diff options
context:
space:
mode:
authorD G Turner2019-08-25 07:27:21 +0100
committerD G Turner2019-08-25 07:27:21 +0100
commit50c5177eb002da0d809f16941643a53677ec324c (patch)
treebb15f5cbe6d1fe5b870458cb3eca4c8ff826c884 /engines/agi/logic.h
parent482f835ad6c1260fb2fc2609ecca70f3ac618fc5 (diff)
downloadscummvm-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/logic.h')
-rw-r--r--engines/agi/logic.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/agi/logic.h b/engines/agi/logic.h
index 5e8700d9a8..992ebbf775 100644
--- a/engines/agi/logic.h
+++ b/engines/agi/logic.h
@@ -36,7 +36,16 @@ struct AgiLogic {
int numTexts; /**< number of messages */
const char **texts; /**< message list */
- AgiLogic() : data(nullptr), size(0), sIP(0), cIP(0), numTexts(0), texts(nullptr) {}
+ void reset() {
+ data = nullptr;
+ size = 0;
+ sIP = 0;
+ cIP = 0;
+ numTexts = 0;
+ texts = nullptr;
+ }
+
+ AgiLogic() { reset(); }
};
} // End of namespace Agi