Make sure ply.AdvDupe2 exists

This commit is contained in:
thegrb93 2019-12-03 10:32:46 -06:00
parent 9018718b3d
commit f45c5137a3

View File

@ -110,7 +110,8 @@ function AdvDupe2.LoadDupe(ply,success,dupe,info,moreinfo)
end
local function AdvDupe2_ReceiveFile(len, ply)
if(not IsValid(ply))then return end
if not IsValid(ply) then return end
if not ply.AdvDupe2 then ply.AdvDupe2 = {} end
local name = net.ReadString()
local _1, _2, _3 = string.find(name, "([%w_]+)")