[MIRROR] Fix improper null coalescence with has_antag_datum (#1298)

* Fix improper null coalescence with has_antag_datum (#54382)

Fixes an incorrect correction of has_antag_datum to use ?.. This does not work since has_antag_datum returns 0 or an object, meaning has_antag_datum()?.property is essentially 0.property.

(Lemon's note, it was causing names to not show in radio chat)

* Fix improper null coalescence with has_antag_datum

Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com>
This commit is contained in:
SkyratBot
2020-10-14 12:31:55 +02:00
committed by GitHub
co-authored by Jared-Fogle
parent 066499bcb8
commit ae91dda7b8
-1
View File
@@ -278,7 +278,6 @@
/datum/mind/proc/has_antag_datum(datum_type, check_subtypes = TRUE)
if(!datum_type)
return
. = FALSE
for(var/a in antag_datums)
var/datum/antagonist/A = a
if(check_subtypes && istype(A, datum_type))