mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-24 05:36:57 +01:00
Fixes runtime in ticker.dm, 411: Cannot read null.mobtype (#7226)
This commit is contained in:
@@ -406,16 +406,16 @@ var/global/datum/controller/subsystem/ticker/ticker
|
||||
for(var/mob/new_player/player in player_list)
|
||||
if(player && player.ready && player.mind?.assigned_role)
|
||||
var/datum/job/J = SSjob.get_job(player.mind.assigned_role)
|
||||
|
||||
|
||||
// Snowflakey AI treatment
|
||||
if(J.mob_type & JOB_SILICON_AI)
|
||||
if(J?.mob_type & JOB_SILICON_AI)
|
||||
player.close_spawn_windows()
|
||||
player.AIize(move = TRUE)
|
||||
continue
|
||||
|
||||
|
||||
// Ask their new_player mob to spawn them
|
||||
var/mob/living/carbon/human/new_char = player.create_character()
|
||||
|
||||
|
||||
// Created their playable character, delete their /mob/new_player
|
||||
if(new_char)
|
||||
qdel(player)
|
||||
|
||||
Reference in New Issue
Block a user