Fix contains proc to use a loop

This commit is contained in:
Bjorn Neergaard
2016-01-04 12:17:09 -06:00
parent dc69cbaefb
commit 57cd223eb0
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* tgui state: deep_inventory_state
*
* Checks that the src_object is in the user's fist-level (backpack, webbing, etc) inventory.
* Checks that the src_object is in the user's deep (backpack, box, toolbox, etc) inventory.
**/
/var/global/datum/ui_state/deep_inventory_state/deep_inventory_state = new()
+1 -1
View File
@@ -15,7 +15,7 @@
return UI_CLOSE
/mob/living/notcontained_can_use_topic(atom/src_object)
if(src in src_object.contents)
if(src_object.contains(src))
return UI_CLOSE // Close if we're inside it.
return default_can_use_topic(src_object)