OpenDream icon indicating copy to clipboard operation
OpenDream copied to clipboard

TGMC: Bad init order causes `/datum/browser` to break

Open ike709 opened this issue 1 year ago • 0 comments

/datum/browser has this var: var/static/datum/asset/simple/namespaced/common/common_asset = get_asset_datum(/datum/asset/simple/namespaced/common)

get_asset_datum() essentially checks a GLOB list or instantiates the arg type if it doesn't exist in the list yet.

The problem is that OpenDream is initializing this static variable, and thus the proc call, before GLOB has been instantiated by the world genesis proc. This causes the browser datum to break entirely.

ike709 avatar Oct 17 '24 17:10 ike709