PR #1140 added checking the thrown, stolen, and dropped flags of an item when testing whether it would merge (at my suggestion...) with a stack in the target list (hero's invent). That interferred with picking it back up--whether via autopickup or explicit pickup--while inventory was full even when the item would otherwise be mergable. There was some trial and error involved when trying to figure where to put the fix but things seem to be working. This replaces a static analyzer workaround and could possibly bring its unwarranted complaint back.
172 KiB
172 KiB