From 6991391b010ef628f334f9396fe613043bbef532 Mon Sep 17 00:00:00 2001 From: ESwordTheCat Date: Sun, 4 May 2014 01:23:02 -0800 Subject: [PATCH] I'm seeing a bug here when the object is created on initialization of the game. So hand by hand the nulling of loc. --- code/__HELPERS/experimental.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/__HELPERS/experimental.dm b/code/__HELPERS/experimental.dm index a31780c9b80..339f86ccc81 100644 --- a/code/__HELPERS/experimental.dm +++ b/code/__HELPERS/experimental.dm @@ -99,6 +99,7 @@ var/list/masterPool = list() var/atom/movable/Object = A Object.resetVariables() + Object.loc = null switch(length(masterPool[Object.type])) if (MAINTAINING_OBJECT_POOL_COUNT to 1.#INF) @@ -135,7 +136,7 @@ var/list/masterPool = list() */ /atom/movable proc/resetVariables() - var/list/exclude = list("locs", "parent_type", "vars", "verbs", "type") // Read-only or compile-time vars + var/list/exclude = list("loc", "locs", "parent_type", "vars", "verbs", "type") // Read-only or compile-time vars and whatevs. exclude += args // Explicit var exclusion var/list/varsCopy = vars - exclude var/key