diff options
author | Torbjörn Andersson | 2019-01-05 20:12:42 +0100 |
---|---|---|
committer | Filippos Karapetis | 2019-07-14 14:58:19 +0300 |
commit | 4eef7a42e3f45a18a57674898f5fb5409f6daf5d (patch) | |
tree | 298ef17606a4aa0747b32c49bd6a28c7e7b9a32c /engines/fullpipe/scenes/scene04.cpp | |
parent | b5b136b1770dd3ed4b750b9df9c10881dded1aba (diff) | |
download | scummvm-rg350-4eef7a42e3f45a18a57674898f5fb5409f6daf5d.tar.gz scummvm-rg350-4eef7a42e3f45a18a57674898f5fb5409f6daf5d.tar.bz2 scummvm-rg350-4eef7a42e3f45a18a57674898f5fb5409f6daf5d.zip |
FULLPIPE: 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/fullpipe/scenes/scene04.cpp')
-rw-r--r-- | engines/fullpipe/scenes/scene04.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp index 45ada3ea6f..59adf37c66 100644 --- a/engines/fullpipe/scenes/scene04.cpp +++ b/engines/fullpipe/scenes/scene04.cpp @@ -645,7 +645,7 @@ MessageQueue *sceneHandler04_kozFly5(StaticANIObject *ani, double phase) { MessageQueue *mq1 = aniHandler.makeRunQueue(&mkQueue); - memset(&mkQueue, 0, sizeof(mkQueue)); + mkQueue.reset(); mkQueue.ani = ani; mkQueue.staticsId1 = ST_KZW_JUMPOUT; mkQueue.staticsId2 = ST_KZW_SIT; |