Skip to content

Commit

Permalink
DM: Fix loadDungeonFile(..) zero sized array allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterGrascph committed Aug 26, 2016
1 parent 7ddd96b commit d49c081
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/dm/dungeonman.cpp
Expand Up @@ -293,6 +293,8 @@ void DungeonMan::loadDungeonFile() {
}
uint16 thingStoreWordCount = gThingDataWordCount[thingType];

if (thingStoreWordCount == 0)
continue;

if (_dunData.thingsData[thingType]) {
delete[] _dunData.thingsData[thingType][0];
Expand Down

0 comments on commit d49c081

Please sign in to comment.