Add fingerprints before putting item in hand (#61330)

Fixes runtimes when crafting stack items and already having a matching stack in your hand
This commit is contained in:
Gamer025
2021-09-10 18:32:29 +01:00
committed by GitHub
parent 9435f3cd0c
commit fd7e7e4c05
+1 -1
View File
@@ -289,9 +289,9 @@
if(QDELETED(O))
return //It's a stack and has already been merged
O.add_fingerprint(usr) //Add fingerprints first, otherwise O might already be deleted because of stack merging
if(isitem(O))
usr.put_in_hands(O)
O.add_fingerprint(usr)
//BubbleWrap - so newly formed boxes are empty
if(istype(O, /obj/item/storage))