fix a weird runtime

This commit is contained in:
Raeschen
2023-07-14 11:03:03 +02:00
parent f89ae1f7cc
commit a49ed11fbd

View File

@@ -144,7 +144,9 @@ NOTE: It checks usr by default. Supply the "user" argument if you wish to check
if(!forceGlobal && usr)
var/client/C = usr.client
if(!C)
CRASH("No client for HrefToken()!")
// CRASH("No client for HrefToken()!") //Chomp EDIT - this seems be to encountered and we don't want this to crash
log_debug("Attempted to retrieve a HrefToken of an entity with no client.") //Chomp EDIT
return 0 //Chomp EDIT
var/datum/admins/holder = C.holder
if(holder)
tok = holder.href_token