From f010e142ce48a033de8fe38281d15aa9f7c50bba Mon Sep 17 00:00:00 2001 From: Krausus Date: Mon, 26 Sep 2016 04:54:34 -0400 Subject: [PATCH] Fixes selecting datums through SDQL2 --- code/modules/admin/verbs/SDQL2/SDQL_2.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/admin/verbs/SDQL2/SDQL_2.dm b/code/modules/admin/verbs/SDQL2/SDQL_2.dm index 6553c739c9f..13fea30a7f8 100644 --- a/code/modules/admin/verbs/SDQL2/SDQL_2.dm +++ b/code/modules/admin/verbs/SDQL2/SDQL_2.dm @@ -252,6 +252,11 @@ if(istype(d, type)) out += d + else if(location == world) + for(var/datum/d) + if(istype(d, type)) + out += d + else for(var/datum/d in location) if(istype(d, type))