mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 12:35:33 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user