diff --git a/code/datums/components/storage/storage.dm b/code/datums/components/storage/storage.dm index 526f24e15d..a92ae9e629 100644 --- a/code/datums/components/storage/storage.dm +++ b/code/datums/components/storage/storage.dm @@ -156,8 +156,8 @@ var/list/contents = contents() if(contents) if(limited_random_access && random_access) - if(limited_radnom_access_stack_position && (length(contents) > limited_random_access_stack_position)) - if(limited_random_acccess_stack_bottom_up) + if(limited_random_access_stack_position && (length(contents) > limited_random_access_stack_position)) + if(limited_random_access_stack_bottom_up) contents.Cut(1, limited_random_access_stack_position + 1) else contents.Cut(1, length(contents) - limited_random_access_stack_position + 1) @@ -301,7 +301,6 @@ /datum/component/storage/proc/_process_numerical_display() . = list() - var/atom/real_location = real_location() for(var/obj/item/I in accessible_items()) if(QDELETED(I)) continue @@ -313,9 +312,8 @@ //This proc determines the size of the inventory to be displayed. Please touch it only if you know what you're doing. /datum/component/storage/proc/orient2hud(mob/user, maxcolumns) - var/atom/real_location = real_location() - var/accessible_contents = accessible_items() - var/adjusted_contents = accessible_contents.len + var/list/accessible_contents = accessible_items() + var/adjusted_contents = length(accessible_contents) //Numbered contents display var/list/datum/numbered_display/numbered_contents @@ -347,7 +345,6 @@ if(cy - screen_start_y >= rows) break else - var/atom/real_location = real_location() for(var/obj/O in accessible_items()) if(QDELETED(O)) continue @@ -369,7 +366,6 @@ return FALSE var/list/cview = getviewsize(M.client.view) var/maxallowedscreensize = cview[1]-8 - var/atom/real_location = real_location() if(M.active_storage != src && (M.stat == CONSCIOUS)) for(var/obj/item/I in accessible_items()) if(I.on_found(M))