mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- 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:
parent
97577dc2d7
commit
983e8bc6a5
1 changed files with 1 additions and 0 deletions
|
@ -702,6 +702,7 @@ int P_FindTerrain (FName name)
|
|||
{
|
||||
unsigned int i;
|
||||
|
||||
if (name == NAME_Null) return -1;
|
||||
for (i = 0; i < Terrains.Size (); i++)
|
||||
{
|
||||
if (Terrains[i].Name == name)
|
||||
|
|
Loading…
Reference in a new issue