From 82295929869a73859dc7e7cb03549701ee0646d1 Mon Sep 17 00:00:00 2001 From: FlattestGuitar Date: Tue, 18 Oct 2016 20:20:47 +0200 Subject: [PATCH] fixes fixes --- code/modules/mob/mob_helpers.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/mob_helpers.dm b/code/modules/mob/mob_helpers.dm index ba47778c144..aa59991a6cb 100644 --- a/code/modules/mob/mob_helpers.dm +++ b/code/modules/mob/mob_helpers.dm @@ -517,7 +517,8 @@ var/list/intents = list(I_HELP,I_DISARM,I_GRAB,I_HARM) var/length var/pos for(var/datum/objective/objective in all_objectives) - if(objective.target != mind) continue + if(!mind || objective.target != mind) + continue length = lentext(oldname) pos = findtextEx(objective.explanation_text, oldname) objective.explanation_text = copytext(objective.explanation_text, 1, pos)+newname+copytext(objective.explanation_text, pos+length)