Func: GetPlayerChars, bug fix

master
AlmTech 5 years ago
parent 60a7f4bd41
commit 02bb941531
  1. 6
      gamemode/engine/lib/server/sv_character.lua

@ -77,8 +77,10 @@ end
function Quantum.Server.Char.GetPlayerChars( pl ) function Quantum.Server.Char.GetPlayerChars( pl )
local chars = {} local chars = {}
for id, char in pairs( Quantum.Server.Char.Players ) do local strtbl = {}
chars[id] = char for id, char in pairs( Quantum.Server.Char.Players ) do
strtbl = string.Split( id, ";" )
if( strtbl[1] == pl:SteamID() ) then chars[id] = char end
end end
return chars return chars
end end
Loading…
Cancel
Save