DM: Fix loadDungeonFile(..) zero sized array allocation

This commit is contained in:
WinterGrascph 2016-05-17 23:09:56 +02:00 committed by Bendegúz Nagy
parent 7ddd96bc60
commit d49c081785

View file

@ -293,6 +293,8 @@ void DungeonMan::loadDungeonFile() {
} }
uint16 thingStoreWordCount = gThingDataWordCount[thingType]; uint16 thingStoreWordCount = gThingDataWordCount[thingType];
if (thingStoreWordCount == 0)
continue;
if (_dunData.thingsData[thingType]) { if (_dunData.thingsData[thingType]) {
delete[] _dunData.thingsData[thingType][0]; delete[] _dunData.thingsData[thingType][0];