Fixes atom pooling return code.

This commit is contained in:
PsiOmega
2015-04-11 10:28:15 +02:00
parent 09b69db537
commit 9181a2a43a

View File

@@ -34,12 +34,10 @@ var/global/list/GlobalPool = list()
if(!AM)
if(ispath(get_type))
if(islist(second_arg))
AM = new get_type (arglist(second_arg))
return new get_type (arglist(second_arg))
else
AM = new get_type (second_arg)
else
return AM
return new get_type (second_arg)
return AM
/proc/GetFromPool(var/get_type,var/second_arg)