diff options
author | D G Turner | 2019-08-26 05:58:02 +0100 |
---|---|---|
committer | D G Turner | 2019-08-26 05:58:02 +0100 |
commit | 5f901676ff0e9007f74a80327e787ae424cfd063 (patch) | |
tree | 9381bf5dff487c96b067dbdf168bf4b1d333d237 /engines/hopkins/globals.cpp | |
parent | 5035c81857839ba86127f18ae66bfed3ee71a85f (diff) | |
download | scummvm-rg350-5f901676ff0e9007f74a80327e787ae424cfd063.tar.gz scummvm-rg350-5f901676ff0e9007f74a80327e787ae424cfd063.tar.bz2 scummvm-rg350-5f901676ff0e9007f74a80327e787ae424cfd063.zip |
HOPKINS: Fix GCC Compiler Warnings
These were from using memset to clear non-trivial structures.
Diffstat (limited to 'engines/hopkins/globals.cpp')
-rw-r--r-- | engines/hopkins/globals.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hopkins/globals.cpp b/engines/hopkins/globals.cpp index 1f192748cd..d6f2c49a35 100644 --- a/engines/hopkins/globals.cpp +++ b/engines/hopkins/globals.cpp @@ -181,7 +181,7 @@ void Globals::clearAll() { _vm->_objectsMan->clearAll(); _saveData = (Savegame *)malloc(sizeof(Savegame)); - memset(_saveData, 0, sizeof(Savegame)); + _saveData->reset(); _vm->_events->clearAll(); } |