extra failsafe

This commit is contained in:
deathride58
2017-09-04 03:53:01 -04:00
parent 790b52cf05
commit 71805de4aa
+2 -1
View File
@@ -20,9 +20,10 @@
var/list/objectiveTypes = typesof(rolePath) - rolePath
if(!objectiveTypes.len)
return
var/selectedType = pick(objectiveTypes)
var/datum/objective/crew/newObjective = new selectedType
if(!newObjective)
return
newObjective.owner = crewMind
crewMind.objectives += newObjective
crewMind.announce_objectives()