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

This commit is contained in:
Timberpoes
2022-02-18 01:03:47 -08:00
committed by GitHub
parent 86dfb85eda
commit f9428e07c6
@@ -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