Fixed uninitialized variable

This commit is contained in:
Timo Smit 2016-11-15 13:58:36 +01:00
parent d3449f847b
commit 01e60a5055

View file

@ -134,7 +134,7 @@ function players.onconnect(clientId, firstTime, isBot)
if player then if player then
db.updateplayerip(data[clientId]["guid"], data[clientId]["ip"]) db.updateplayerip(data[clientId]["guid"], data[clientId]["ip"])
local alias = db.getaliasbyname(player["id"], name) local alias = db.getaliasbyname(player["id"], data[clientId]["name"])
if alias then if alias then
db.updatealias(alias["id"], os.time()) db.updatealias(alias["id"], os.time())