From ac85b68ea95a7feb305cf8a38dc0cde33ae97529 Mon Sep 17 00:00:00 2001 From: Remie Richards Date: Sun, 27 Dec 2015 03:46:25 +0000 Subject: [PATCH] Optimises a loop in hotspot perform_exposure() --- code/LINDA/LINDA_fire.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/LINDA/LINDA_fire.dm b/code/LINDA/LINDA_fire.dm index fa7c5902d8e..00d16589414 100644 --- a/code/LINDA/LINDA_fire.dm +++ b/code/LINDA/LINDA_fire.dm @@ -80,7 +80,8 @@ volume = affected.fuel_burnt*FIRE_GROWTH_RATE location.assume_air(affected) - for(var/atom/item in loc) + for(var/A in loc) + var/atom/item = A if(item && item != src) // It's possible that the item is deleted in temperature_expose item.fire_act(null, temperature, volume) return 0