- explicitly check NAME_Null in P_FindTerrain so that it cannot get rendered inoperable by mods which hijack this name. This name must be reserved so that there is some means to disable a sector's terrain.

This commit is contained in:
Christoph Oelckers 2016-03-05 22:39:53 +01:00
parent 97577dc2d7
commit 983e8bc6a5

View file

@ -702,6 +702,7 @@ int P_FindTerrain (FName name)
{ {
unsigned int i; unsigned int i;
if (name == NAME_Null) return -1;
for (i = 0; i < Terrains.Size (); i++) for (i = 0; i < Terrains.Size (); i++)
{ {
if (Terrains[i].Name == name) if (Terrains[i].Name == name)