diff --git a/code/modules/lighting/lighting_overlay.dm b/code/modules/lighting/lighting_overlay.dm index 3fd160ee5a..51451e832a 100644 --- a/code/modules/lighting/lighting_overlay.dm +++ b/code/modules/lighting/lighting_overlay.dm @@ -53,10 +53,11 @@ // See LIGHTING_CORNER_DIAGONAL in lighting_corner.dm for why these values are what they are. // No I seriously cannot think of a more efficient method, fuck off Comic. - var/datum/lighting_corner/cr = T.corners[3] || dummy_lighting_corner - var/datum/lighting_corner/cg = T.corners[2] || dummy_lighting_corner - var/datum/lighting_corner/cb = T.corners[4] || dummy_lighting_corner - var/datum/lighting_corner/ca = T.corners[1] || dummy_lighting_corner + + var/datum/lighting_corner/cr = LAZYACCESS(T.corners,3) || dummy_lighting_corner + var/datum/lighting_corner/cg = LAZYACCESS(T.corners,2) || dummy_lighting_corner + var/datum/lighting_corner/cb = LAZYACCESS(T.corners,4) || dummy_lighting_corner + var/datum/lighting_corner/ca = LAZYACCESS(T.corners,1) || dummy_lighting_corner var/max = max(cr.cache_mx, cg.cache_mx, cb.cache_mx, ca.cache_mx) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 480ce3cc80..14c2390ac3 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -57,11 +57,11 @@ for(var/organ in organs) qdel(organ) - list_layers.Cut() + LAZYCLEARLIST(list_layers) list_layers = null //Be free! - list_body.Cut() + LAZYCLEARLIST(list_body) list_body = null - list_huds.Cut() + LAZYCLEARLIST(list_huds) list_huds = null return ..() diff --git a/code/modules/mob/mob_planes.dm b/code/modules/mob/mob_planes.dm index 9e4952ba26..3da38e9c36 100644 --- a/code/modules/mob/mob_planes.dm +++ b/code/modules/mob/mob_planes.dm @@ -40,7 +40,7 @@ my_mob.plane_holder = null my_mob = null plane_masters.Cut() //Goodbye my children, be free - ..() //We will get qdel'd, as there will not be references to us, then our planelets will disappear on their own. + return ..() /datum/plane_holder/proc/set_vis(var/which = null, var/state = FALSE) ASSERT(which)