fixes fixes

This commit is contained in:
FlattestGuitar
2016-10-18 20:20:47 +02:00
parent e034f63e8d
commit 8229592986
+2 -1
View File
@@ -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)