mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 23:49:21 +01:00
Merge pull request #3492 from VOREStation/fix-null-rank
Prevent returning null from get_authentification_rank()
This commit is contained in:
@@ -261,7 +261,7 @@
|
||||
var/obj/item/device/pda/pda = wear_id
|
||||
if (istype(pda))
|
||||
if (pda.id)
|
||||
return pda.id.rank
|
||||
return pda.id.rank ? pda.id.rank : if_no_job
|
||||
else
|
||||
return pda.ownrank
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user