Fix ID card examine runtime (#78785)

## About The Pull Request

This always expects to return a list, even if empty. 

But this early returned before the parent call, meaning it didn't return
the empty list (from parent) as expected.

## Changelog

🆑 Melbert
fix: Fixed an error from reading an ID card closely when you can't read
/🆑
This commit is contained in:
MrMelbert
2023-10-06 19:38:08 -05:00
committed by GitHub
parent 1564f16c8e
commit dbf407bdd5
+2 -1
View File
@@ -32,6 +32,7 @@
lefthand_file = 'icons/mob/inhands/equipment/idcards_lefthand.dmi'
righthand_file = 'icons/mob/inhands/equipment/idcards_righthand.dmi'
w_class = WEIGHT_CLASS_TINY
/// Cached icon that has been built for this card. Intended to be displayed in chat. Cardboards IDs and actual IDs use it.
var/icon/cached_flat_icon
@@ -752,10 +753,10 @@
break
/obj/item/card/id/examine_more(mob/user)
. = ..()
if(!user.can_read(src))
return
. = ..()
. += span_notice("<i>You examine [src] closer, and note the following...</i>")
if(registered_age)