diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index fe95affaffd2..dcb34fbf95b0 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -182,12 +182,10 @@ for(var/path in types) if(findtext("[path]", object)) matches += path - - if(matches.len==0) + if(matches.len==0 || matches == "" || matches == " ") return - var/chosen - if(matches.len==1) + if(matches.len > 1) chosen = matches[1] else chosen = tgui_input_list(usr, "Select an atom type", "Spawn Atom", matches)