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,14 +34,12 @@ var/global/list/GlobalPool = list()
if(!AM) if(!AM)
if(ispath(get_type)) if(ispath(get_type))
if(islist(second_arg)) 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 else
return new get_type (second_arg)
return AM return AM
/proc/GetFromPool(var/get_type,var/second_arg) /proc/GetFromPool(var/get_type,var/second_arg)
if(!get_type) if(!get_type)
return 0 return 0