diff options
author | D G Turner | 2019-08-25 05:55:54 +0100 |
---|---|---|
committer | D G Turner | 2019-08-25 05:55:54 +0100 |
commit | 482f835ad6c1260fb2fc2609ecca70f3ac618fc5 (patch) | |
tree | 87f96e0681908ba8261b6f30a5470d3b7b0186df /engines/agi/agi.cpp | |
parent | 4b6578603d1195f04be230870ab003ed0698d936 (diff) | |
download | scummvm-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/agi.cpp')
-rw-r--r-- | engines/agi/agi.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index 93e1187523..227700561b 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -360,7 +360,6 @@ AgiEngine::AgiEngine(OSystem *syst, const AGIGameDescription *gameDesc) : AgiBas DebugMan.addDebugChannel(kDebugLevelText, "Text", "Text output debugging"); DebugMan.addDebugChannel(kDebugLevelSavegame, "Savegame", "Saving & restoring game debugging"); - memset(&_game, 0, sizeof(struct AgiGame)); memset(&_debug, 0, sizeof(struct AgiDebug)); _game.mouseEnabled = true; |