mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 23:17:02 +01:00
Fix a potential minor logic error.
If the stack has no items left, we drop it, it gets merged with another stack on the ground, then we should still report the stack as having zero items. Otherwise there's a potential to accidentally use items on the ground once you run out of items in hand, which is slightly surprising.
This commit is contained in:
@@ -312,7 +312,7 @@
|
||||
// the two get merged, so the amount of items in the stack can increase from the 0 that it had before.
|
||||
// Check the amount again, to be sure we're not qdeling healthy stacks.
|
||||
qdel(src)
|
||||
return TRUE
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
/obj/item/stack/proc/merge(obj/item/stack/S) //Merge src into S, as much as possible
|
||||
|
||||
Reference in New Issue
Block a user