[MIRROR] Fix BYOND-related runtime in SDQL2 _new wrapper. [MDB IGNORE] (#11585)

* Fix BYOND-related runtime in SDQL2 _new wrapper (#64895)

* Fix BYOND-related runtime in SDQL2 _new wrapper.

Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
This commit is contained in:
SkyratBot
2022-02-19 00:27:13 +01:00
committed by GitHub
parent 257c529c8a
commit 0fa409bc88
@@ -85,7 +85,13 @@
return min(arglist(args))
/proc/_new(type, arguments)
var/datum/result = new type(arglist(arguments))
var/datum/result
if(!length(arguments))
result = new type()
else
result = new type(arglist(arguments))
if(istype(result))
result.datum_flags |= DF_VAR_EDITED
return result