mirror of
https://github.com/etlegacy/etlegacy-lua-scripts.git
synced 2024-11-22 20:41:12 +00:00
Update xpsave.lua
Lua 5.1 crash fix (arithmetic on field 'CS_PLAYERS' (a nil value))
This commit is contained in:
parent
2ac15e3247
commit
19185cd076
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue