diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index 7382f33ffe..90c891ae24 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -191,6 +191,7 @@ var/DBQuery/query = dbcon.NewQuery("SELECT id, datediff(Now(),firstseen) as age FROM erro_player WHERE ckey = '[sql_ckey]'") query.Execute() var/sql_id = 0 + player_age = 0 // New players won't have an entry so knowing we have a connection we set this to zero to be updated if their is a record. while(query.NextRow()) sql_id = query.item[1] player_age = text2num(query.item[2])