From f4ee62bb0725a3ae94477b2818071f506e4dfd9f Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Fri, 13 Jan 2017 20:33:59 -0500 Subject: Finished up shaped inventory, and more work on shared functions. --- gamemode/core/npc/cl_npcmap.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'gamemode/core/npc/cl_npcmap.lua') 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) -- cgit v1.2.3-70-g09d2