diff options
author | Torbjörn Andersson | 2019-01-05 20:12:17 +0100 |
---|---|---|
committer | Filippos Karapetis | 2019-07-14 14:58:18 +0300 |
commit | b5b136b1770dd3ed4b750b9df9c10881dded1aba (patch) | |
tree | 084196df19057cf81e3a823a95aee55409a41eac /engines/agos/vga.cpp | |
parent | 71a9def71e8cd73dd4c93fd4f2bc0a096e0a79fb (diff) | |
download | scummvm-rg350-b5b136b1770dd3ed4b750b9df9c10881dded1aba.tar.gz scummvm-rg350-b5b136b1770dd3ed4b750b9df9c10881dded1aba.tar.bz2 scummvm-rg350-b5b136b1770dd3ed4b750b9df9c10881dded1aba.zip |
AGOS: Silence GCC memset() warnings
Recent GCC versions complain if you memset() a class or struct that
contain non-POD data types. Get around that by either initializing
the object when created, or by adding a reset() method.
Diffstat (limited to 'engines/agos/vga.cpp')
-rw-r--r-- | engines/agos/vga.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agos/vga.cpp b/engines/agos/vga.cpp index 2a675bf6e8..7926f7f4fe 100644 --- a/engines/agos/vga.cpp +++ b/engines/agos/vga.cpp @@ -1083,7 +1083,7 @@ void AGOSEngine::vc27_resetSprite() { _lastVgaWaitFor = 0; - memset(&bak, 0, sizeof(bak)); + bak.reset(); vsp = _vgaSprites; while (vsp->id) { |