mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 16:42:13 +00:00
Fixes maniquin caused runtimes (#6784)
This commit is contained in:
@@ -225,9 +225,9 @@
|
||||
* Helping functions for everyone
|
||||
*/
|
||||
/proc/GetAssignment(var/mob/living/carbon/human/H)
|
||||
if(H.mind.role_alt_title)
|
||||
if(H.mind?.role_alt_title)
|
||||
return H.mind.role_alt_title
|
||||
else if(H.mind.assigned_role)
|
||||
else if(H.mind?.assigned_role)
|
||||
return H.mind.assigned_role
|
||||
else if(H.job)
|
||||
return H.job
|
||||
|
||||
@@ -281,6 +281,8 @@ main ui datum.
|
||||
* @return nothing
|
||||
*/
|
||||
/datum/vueui/proc/check_for_change(var/force = 0)
|
||||
if(!user.client)
|
||||
return
|
||||
if(status > STATUS_DISABLED)
|
||||
var/ret = object.vueui_data_change(data, user, src)
|
||||
if(ret)
|
||||
@@ -323,7 +325,7 @@ main ui datum.
|
||||
* @return nothing
|
||||
*/
|
||||
/datum/vueui/process()
|
||||
if (!object || !user || status < 0)
|
||||
if (!object || !user || status < 0 || !user.client)
|
||||
close()
|
||||
return
|
||||
update_status()
|
||||
|
||||
Reference in New Issue
Block a user