[MIRROR] Initialize fixing (#10335)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-03-08 14:22:04 -07:00
committed by GitHub
parent 2e725a0727
commit ce2446922e
888 changed files with 2876 additions and 2225 deletions

View File

@@ -14,7 +14,7 @@
var/datum/ai_holder/ai_holder = null
var/ai_holder_type = null // Which ai_holder datum to give to the mob when initialized. If null, nothing happens.
/mob/living/Initialize()
/mob/living/Initialize(mapload)
if(!ai_holder)
initialize_ai_holder()
return ..()
@@ -29,7 +29,7 @@
ai_holder.manage_processing(AI_PROCESSING)
return ..()
//Extracted from mob/living/Initialize() so that we may call it at any time after a mob was created
//Extracted from mob/living/Initialize(mapload) so that we may call it at any time after a mob was created
/mob/living/proc/initialize_ai_holder()
if(ai_holder) //Making double sure we clean up and properly GC the original ai_holder
var/old_holder = ai_holder