diff --git a/code/game/objects/items/weapons/storage/storage.dm b/code/game/objects/items/weapons/storage/storage.dm index 87011d48eb4..907f0c24ab4 100644 --- a/code/game/objects/items/weapons/storage/storage.dm +++ b/code/game/objects/items/weapons/storage/storage.dm @@ -717,13 +717,13 @@ while (cur_atom && !(cur_atom in container.contents)) if (isarea(cur_atom)) - return -1 + return INFINITY if (istype(cur_atom.loc, /obj/item/storage)) depth++ cur_atom = cur_atom.loc if (!cur_atom) - return -1 //inside something with a null loc. + return INFINITY //inside something with a null loc. return depth @@ -735,13 +735,13 @@ while (cur_atom && !isturf(cur_atom)) if (isarea(cur_atom)) - return -1 + return INFINITY if (istype(cur_atom.loc, /obj/item/storage)) depth++ cur_atom = cur_atom.loc if (!cur_atom) - return -1 //inside something with a null loc. + return INFINITY //inside something with a null loc. return depth