aboutsummaryrefslogtreecommitdiff
path: root/gamemode/npcsystem/sh_humannpc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/npcsystem/sh_humannpc.lua')
-rw-r--r--gamemode/npcsystem/sh_humannpc.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/gamemode/npcsystem/sh_humannpc.lua b/gamemode/npcsystem/sh_humannpc.lua
index b4a2b15..5cd31f8 100644
--- a/gamemode/npcsystem/sh_humannpc.lua
+++ b/gamemode/npcsystem/sh_humannpc.lua
@@ -18,7 +18,7 @@ setmetatable(npc,{__index = function(self,key)
if key == "Model" then
return human_models[math.random(#human_models)]
else
- return base1.key or base2.key
+ return base1[key] or base2[key]
end
end})
@@ -65,3 +65,5 @@ for k,v in pairs(learnable) do
end
reg.RegisterNPC(npc, "Human NPC Base")
+
+return npc