diff --git a/code/modules/mob/living/simple_animal/bot/mulebot.dm b/code/modules/mob/living/simple_animal/bot/mulebot.dm index ca875f65146..c98dcadd014 100644 --- a/code/modules/mob/living/simple_animal/bot/mulebot.dm +++ b/code/modules/mob/living/simple_animal/bot/mulebot.dm @@ -451,11 +451,11 @@ unbuckle_all_mobs() if(load) //don't have to do any of this for mobs. - load.forceMove(loc) - load.pixel_y = initial(load.pixel_y) - load.layer = initial(load.layer) - SET_PLANE_EXPLICIT(load, initial(load.plane), src) load = null + cached_load.forceMove(loc) + cached_load.pixel_y = initial(cached_load.pixel_y) + cached_load.layer = initial(cached_load.layer) + SET_PLANE_EXPLICIT(cached_load, initial(cached_load.plane), src) if(dirn) //move the thing to the delivery point. cached_load.Move(get_step(loc,dirn), dirn)