I'm seeing a bug here when the object is created on initialization of the game. So hand by hand the nulling of loc.

This commit is contained in:
ESwordTheCat
2014-05-04 01:23:02 -08:00
committed by ZomgPonies
parent ab9fbd6713
commit 6991391b01
+2 -1
View File
@@ -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