Update xpsave.lua

Lua 5.1 crash fix (arithmetic on field 'CS_PLAYERS'  (a nil value))
This commit is contained in:
IR4T4 2014-10-07 21:19:43 +02:00
parent 2ac15e3247
commit 19185cd076

View file

@ -145,7 +145,7 @@ function et_ShutdownGame(restart)
-- iterate through clients and save their XP
while cno < maxclients do
local cs = et.trap_GetConfigstring(et.CS_PLAYERS + cno)
local cs = et.trap_GetConfigstring(tonumber(et.CS_PLAYERS) + cno)
if not cs or cs == "" then break end