Func: GetPlayerChars, bug fix

master
AlmTech 5 years ago
parent 60a7f4bd41
commit 02bb941531
  1. 4
      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 = {}
local strtbl = {}
for id, char in pairs( Quantum.Server.Char.Players ) do for id, char in pairs( Quantum.Server.Char.Players ) do
chars[id] = char 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