mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
Fix BYOND-related runtime in SDQL2 _new wrapper (#64895)
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