Fixes runtime that bluescreens char directory

Fixes a humanmob with no flavor text breaking char directory for everyone.
This commit is contained in:
Verkister
2022-11-27 21:50:25 +02:00
committed by GitHub
parent 343c2757c3
commit 89cb4abbde

View File

@@ -68,7 +68,8 @@ GLOBAL_DATUM(character_directory, /datum/character_directory)
name = strangername name = strangername
species = "[H.custom_species ? H.custom_species : H.species.name]" species = "[H.custom_species ? H.custom_species : H.species.name]"
ooc_notes = H.ooc_notes ooc_notes = H.ooc_notes
flavor_text = H.flavor_texts["general"] if(LAZYLEN(H.flavor_texts))
flavor_text = H.flavor_texts["general"]
if(isAI(C.mob)) if(isAI(C.mob))
var/mob/living/silicon/ai/A = C.mob var/mob/living/silicon/ai/A = C.mob