mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 18:02:57 +00:00
Merge pull request #14260 from timothyteakettle/undeleted-query
fixes the 'undeleted query' message at the start of every shift
This commit is contained in:
@@ -80,10 +80,12 @@ GLOBAL_PROTECT(mentor_href_token)
|
|||||||
return
|
return
|
||||||
var/datum/DBQuery/query_load_mentors = SSdbcore.NewQuery("SELECT ckey FROM [format_table_name("mentor")]")
|
var/datum/DBQuery/query_load_mentors = SSdbcore.NewQuery("SELECT ckey FROM [format_table_name("mentor")]")
|
||||||
if(!query_load_mentors.Execute())
|
if(!query_load_mentors.Execute())
|
||||||
|
qdel(query_load_mentors)
|
||||||
return
|
return
|
||||||
while(query_load_mentors.NextRow())
|
while(query_load_mentors.NextRow())
|
||||||
var/ckey = ckey(query_load_mentors.item[1])
|
var/ckey = ckey(query_load_mentors.item[1])
|
||||||
new /datum/mentors(ckey)
|
new /datum/mentors(ckey)
|
||||||
|
qdel(query_load_mentors)
|
||||||
|
|
||||||
// new client var: mentor_datum. Acts the same way holder does towards admin: it holds the mentor datum. if set, the guy's a mentor.
|
// new client var: mentor_datum. Acts the same way holder does towards admin: it holds the mentor datum. if set, the guy's a mentor.
|
||||||
/client
|
/client
|
||||||
|
|||||||
Reference in New Issue
Block a user