diff --git a/code/modules/admin/verbs/SDQL2/useful_procs.dm b/code/modules/admin/verbs/SDQL2/useful_procs.dm index 8c53895b36c..5dd8d657118 100644 --- a/code/modules/admin/verbs/SDQL2/useful_procs.dm +++ b/code/modules/admin/verbs/SDQL2/useful_procs.dm @@ -8,22 +8,22 @@ CALL global.json_to_object_arbitrary_vars("{'type':'/obj/item/weapon/crowbar', ' // This is a bit more flexible than the serialization interface because that interface // expects a rigid structure for the data /proc/json_to_object_arbitrary_vars(json_data, position) - var/data = json_decode(json_data) - return list_to_object_arbitrary_vars(data, position) + var/data = json_decode(json_data) + return list_to_object_arbitrary_vars(data, position) /proc/list_to_object_arbitrary_vars(list/data, position) - if(!islist(data)) - throw EXCEPTION("Not a list.") - if(!("type" in data)) - throw EXCEPTION("No 'type' field in the data") - var/path = text2path(data["type"]) - if(!path) - throw EXCEPTION("Path not found: [path]") + if(!islist(data)) + throw EXCEPTION("Not a list.") + if(!("type" in data)) + throw EXCEPTION("No 'type' field in the data") + var/path = text2path(data["type"]) + if(!path) + throw EXCEPTION("Path not found: [path]") - var/atom/movable/thing = new path(position) - data -= "type" - for(var/attribute in data) - thing.vars[attribute] = data[attribute] + var/atom/movable/thing = new path(position) + data -= "type" + for(var/attribute in data) + thing.vars[attribute] = data[attribute] - return thing + return thing