Fixed a crash in LinedefActionInfo.Get3DFloorFlags()

This commit is contained in:
MascaraSnake 2016-02-01 17:47:07 +01:00
parent 1a350c0f55
commit bf291bbe5e

View file

@ -180,7 +180,7 @@ namespace CodeImp.DoomBuilder.Config
int value = threedfloorflags;
foreach (KeyValuePair<string,int> p in threedfloorflagsadditions)
{
if (setflags[p.Key]) value += p.Value;
if (setflags.ContainsKey(p.Key) && setflags[p.Key]) value += p.Value;
}
return value;
}