Claude 96a49e2bf6
Fix inventory overflow bug overwriting equipment slot 0
FindFirstFreeSlotThatFitsItem was returning 0 instead of INVALID_INDEX
when no free slot was found. This caused items to be placed in slot 0
(charm equipment slot) when inventory was full, overwriting equipped items.

Changes:
- Fix FindFirstFreeSlotThatFitsItem to return INVALID_INDEX when no slot found
- Add defensive check in PutItemInInventoryWithStacking to protect equipment
  slots 0-22 from being targeted for item placement
2026-01-23 21:38:43 +00:00
..
2025-06-25 12:26:38 -05:00
2023-09-17 13:12:43 -05:00
2025-05-22 13:08:32 -05:00
2025-02-03 04:02:42 -06:00
2025-02-03 04:02:42 -06:00
2021-08-31 01:24:21 -05:00
2025-10-05 12:50:18 -04:00
2025-07-10 15:08:08 -04:00
2025-07-10 15:08:08 -04:00
2025-02-03 04:02:42 -06:00
2025-07-10 15:08:08 -04:00
2024-07-30 18:27:47 -04:00
2025-07-10 15:08:08 -04:00
2025-10-05 12:50:18 -04:00
2025-02-03 04:02:42 -06:00