extra failsafe
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user