Skip to content

Commit

Permalink
Merge pull request tgstation#14308 from tgstation/duncathan-patch-1
Browse files Browse the repository at this point in the history
Cancelling while adding a custom objective no longer adds a free objective
  • Loading branch information
Aranclanos committed Jan 5, 2016
2 parents 4e81912 + f1783bc commit 3108162
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/datums/mind.dm
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,8 @@
if (istype(new_objective, /datum/objective/custom)) //it's lame I know but this type is snowflaky by its very nature
var/expl = stripped_input(usr, "Custom objective:", "Objective", objective ? objective.explanation_text : "")
if (!expl)
expl = "Free objective"
qdel(new_objective)
return
new_objective.explanation_text = expl

if (!new_objective)
Expand Down

0 comments on commit 3108162

Please sign in to comment.