From d49c081785bc4eab83246a9c9697604692f47b1d Mon Sep 17 00:00:00 2001 From: WinterGrascph Date: Tue, 17 May 2016 23:09:56 +0200 Subject: DM: Fix loadDungeonFile(..) zero sized array allocation --- engines/dm/dungeonman.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/dm') diff --git a/engines/dm/dungeonman.cpp b/engines/dm/dungeonman.cpp index 2d700f3d89..d467f5904c 100644 --- a/engines/dm/dungeonman.cpp +++ b/engines/dm/dungeonman.cpp @@ -293,6 +293,8 @@ void DungeonMan::loadDungeonFile() { } uint16 thingStoreWordCount = gThingDataWordCount[thingType]; + if (thingStoreWordCount == 0) + continue; if (_dunData.thingsData[thingType]) { delete[] _dunData.thingsData[thingType][0]; -- cgit v1.2.3