Fixes byond trying to create a new /world/ object on admin proc calls

This SHOULD work
This commit is contained in:
Kyle Spier-Swenson
2016-01-02 03:25:31 -08:00
parent 424e2a913b
commit 85c037ffe7
+6
View File
@@ -71,6 +71,12 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
if(targetselected && !hascall(target,procname))
usr << "<font color='red'>Error: callproc(): target has no such call [procname].</font>"
return
else
procpath = text2path(procname)
if (!procpath)
usr << "<font color='red'>Error: callproc(): proc [procname] does not exist. (Did you forget the /proc/ part?)</font>"
return
procname = procpath
var/list/lst = get_callproc_args()
if(!lst)
return