DM: Fix loadDungeonFile(..) zero sized array allocation
This commit is contained in:
parent
7ddd96bc60
commit
d49c081785
1 changed files with 2 additions and 0 deletions
|
@ -293,6 +293,8 @@ void DungeonMan::loadDungeonFile() {
|
|||
}
|
||||
uint16 thingStoreWordCount = gThingDataWordCount[thingType];
|
||||
|
||||
if (thingStoreWordCount == 0)
|
||||
continue;
|
||||
|
||||
if (_dunData.thingsData[thingType]) {
|
||||
delete[] _dunData.thingsData[thingType][0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue