diff options
author | D G Turner | 2019-08-24 10:25:20 +0100 |
---|---|---|
committer | D G Turner | 2019-08-24 10:25:20 +0100 |
commit | 1a9fa34dc18813a1048ad24466fd957050f82ec6 (patch) | |
tree | 6b12bb862f3db2d8127665e42bf36741ba388da7 /engines/agi/agi.cpp | |
parent | 400cae33ab1a7591560ee80e15f5c96d3a36addd (diff) | |
download | scummvm-rg350-1a9fa34dc18813a1048ad24466fd957050f82ec6.tar.gz scummvm-rg350-1a9fa34dc18813a1048ad24466fd957050f82ec6.tar.bz2 scummvm-rg350-1a9fa34dc18813a1048ad24466fd957050f82ec6.zip |
AGI: Fix some GCC Compilation Warnings
These were associated with memset() of Mouse structure which now has
a constructor method to do this instead.
Diffstat (limited to 'engines/agi/agi.cpp')
-rw-r--r-- | engines/agi/agi.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index c18e9ac0b7..93e1187523 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -360,10 +360,8 @@ 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)); - memset(&_mouse, 0, sizeof(struct Mouse)); _game.mouseEnabled = true; _game.mouseHidden = false; |