diff --git a/code/game/gamemodes/objective.dm b/code/game/gamemodes/objective.dm index ddab87ebb80..e1340074c8a 100644 --- a/code/game/gamemodes/objective.dm +++ b/code/game/gamemodes/objective.dm @@ -80,9 +80,10 @@ datum/objective/mutiny check_completion() if(target && target.current) + var/turf/T = get_turf(target.current) if(target.current.stat == 2) return 1 - else if(target.current.z != 1)//If they leave the station they count as dead for this + else if((T) && (T.z != 1))//If they leave the station they count as dead for this return 2 else return 0 diff --git a/code/game/gamemodes/revolution/revolution.dm b/code/game/gamemodes/revolution/revolution.dm index bbf6d3271d6..1daa61a137c 100644 --- a/code/game/gamemodes/revolution/revolution.dm +++ b/code/game/gamemodes/revolution/revolution.dm @@ -352,10 +352,11 @@ var/list/names = new for(var/datum/mind/i in heads) if(i.current) + var/turf/T = get_turf(i.current) var/hstatus = "" if(i.current.stat == 2) hstatus = "Dead" - else if(i.current.z != 1) + else if((T) && (T.z != 1)) hstatus = "Abandoned the station" names += i.current.real_name + " ([hstatus])" + ((i in targets)?"(target)":"") else