diff options
author | D G Turner | 2019-08-26 00:36:59 +0100 |
---|---|---|
committer | D G Turner | 2019-08-26 02:31:29 +0100 |
commit | bf5846dcd7d0c7c7cd34982bae5860cb2bfd2415 (patch) | |
tree | 5c2d0c8acb32fb3dabb6b0e1d24e139066eda1ef /engines/dm | |
parent | cb3030508eb3820f3e5f7f4ef779871621deb04b (diff) | |
download | scummvm-rg350-bf5846dcd7d0c7c7cd34982bae5860cb2bfd2415.tar.gz scummvm-rg350-bf5846dcd7d0c7c7cd34982bae5860cb2bfd2415.tar.bz2 scummvm-rg350-bf5846dcd7d0c7c7cd34982bae5860cb2bfd2415.zip |
DM: Fix GCC Compiler Warnings from Structure memset Usage.
Diffstat (limited to 'engines/dm')
-rw-r--r-- | engines/dm/dungeonman.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/dm/dungeonman.cpp b/engines/dm/dungeonman.cpp index 7d7b80685e..23648e9c4d 100644 --- a/engines/dm/dungeonman.cpp +++ b/engines/dm/dungeonman.cpp @@ -1218,7 +1218,9 @@ Thing DungeonMan::getUnusedThing(uint16 thingType) { break; } } - memset(thingPtr, 0, thingDataByteCount * 2); + for (uint16 i = 0; i < thingDataByteCount; i++) { + thingPtr[i].set(0); + } *thingPtr = _vm->_thingEndOfList; return curThing; |