diff options
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; |