Skip to content

Commit

Permalink
check for item in contents when pulling from satchel
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarmunora committed Dec 2, 2023
1 parent 1f8bf4e commit 8c3bd72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/obj/item/satchel.dm
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
satchel_contents[temp] = I
sortList(satchel_contents, /proc/cmp_text_asc)
var/chosenItem = input("Select an item to pull out.", "Choose Item") as null|anything in satchel_contents
if (!chosenItem)
if (!chosenItem || !(chosenItem in src.contents))
return
return satchel_contents[chosenItem]

Expand Down

0 comments on commit 8c3bd72

Please sign in to comment.