Fix typo in GetNailOwner

This commit is contained in:
JetBoom 2014-11-21 02:24:24 -05:00
parent de057a7fc6
commit f9c12c63b3

View file

@ -367,7 +367,7 @@ end
local function GetNailOwner(nail, filter) local function GetNailOwner(nail, filter)
for _, ent in pairs(ents.GetAll()) do for _, ent in pairs(ents.GetAll()) do
if ent and ent ~= filter and ent.Nails and ent:isValid() then if ent and ent ~= filter and ent.Nails and ent:IsValid() then
for __, n in pairs(ent.Nails) do for __, n in pairs(ent.Nails) do
if n == nail then if n == nail then
return ent return ent