[Scummvm-git-logs] scummvm master -> bf5846dcd7d0c7c7cd34982bae5860cb2bfd2415
digitall
dgturner at iee.org
Mon Aug 26 03:33:24 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
bf5846dcd7 DM: Fix GCC Compiler Warnings from Structure memset Usage.
Commit: bf5846dcd7d0c7c7cd34982bae5860cb2bfd2415
https://github.com/scummvm/scummvm/commit/bf5846dcd7d0c7c7cd34982bae5860cb2bfd2415
Author: D G Turner (digitall at scummvm.org)
Date: 2019-08-26T02:31:29+01:00
Commit Message:
DM: Fix GCC Compiler Warnings from Structure memset Usage.
Changed paths:
engines/dm/dungeonman.cpp
diff --git a/engines/dm/dungeonman.cpp b/engines/dm/dungeonman.cpp
index 7d7b806..23648e9 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;
More information about the Scummvm-git-logs
mailing list