Skip to content

Commit

Permalink
sees if the thing has been fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSuckerberg committed Dec 28, 2023
1 parent 5874f93 commit 2d85e92
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions code/controllers/globals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,7 @@ GLOBAL_REAL(GLOB, /datum/controller/global_vars)
GLOB = src

var/datum/controller/exclude_these = new
// I know this is dumb but the nested vars list hangs a ref to the datum. This fixes that
var/list/controller_vars = exclude_these.vars.Copy()
controller_vars["vars"] = null
gvars_datum_in_built_vars = controller_vars + list(NAMEOF(src, gvars_datum_protected_varlist), NAMEOF(src, gvars_datum_in_built_vars), NAMEOF(src, gvars_datum_init_order))

#if DM_VERSION >= 515 && DM_BUILD > 1620
#warn datum.vars hanging a ref should now be fixed, there should be no reason to remove the vars list from our controller's vars list anymore
#endif
gvars_datum_in_built_vars = exclude_these.vars + list(NAMEOF(src, gvars_datum_protected_varlist), NAMEOF(src, gvars_datum_in_built_vars), NAMEOF(src, gvars_datum_init_order))
QDEL_IN(exclude_these, 0) //signal logging isn't ready
log_world("[vars.len - gvars_datum_in_built_vars.len] global variables")

Expand Down

0 comments on commit 2d85e92

Please sign in to comment.