aboutsummaryrefslogtreecommitdiff
path: root/gamemode/core/npc/cl_npcmap.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/core/npc/cl_npcmap.lua')
-rw-r--r--gamemode/core/npc/cl_npcmap.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/gamemode/core/npc/cl_npcmap.lua b/gamemode/core/npc/cl_npcmap.lua
index 5a9de7e..ea7293e 100644
--- a/gamemode/core/npc/cl_npcmap.lua
+++ b/gamemode/core/npc/cl_npcmap.lua
@@ -61,6 +61,7 @@ hook.Add("Initialize","loadmapicons",function()
end
local mapiconstxt = file.Read("artery/client/"..mapname.."/known.txt")
+ if not mapiconstxt then return end --File does not exist!
for k,v in pairs(string.Explode("\r?\n",mapiconstxt,true)) do
local isleaf = tobool(v[1])
local ttbl = string.Explode(",",v)