mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 19:44:09 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user