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
..
2023-10-23 22:39:37 -05:00
2025-09-17 00:47:42 -05:00
2023-10-23 22:39:37 -05:00
2025-08-15 23:36:35 -05:00
2025-10-05 12:50:18 -04:00
2025-09-17 00:47:42 -05:00
2025-02-03 04:02:42 -06:00
2024-06-01 18:21:26 -05:00
2024-06-01 18:21:26 -05:00
2016-05-30 06:52:25 -04:00
2025-10-05 12:50:18 -04:00
2018-04-27 21:41:52 -04:00
2018-04-27 21:41:52 -04:00
2016-05-25 02:38:06 -04:00
2020-01-16 17:17:31 -05:00
2020-05-09 14:40:33 -05:00
2023-10-23 22:39:37 -05:00
2019-04-16 01:09:25 -07:00
2025-09-17 00:50:03 -05:00
2025-09-16 22:52:57 -04:00
2019-09-01 23:54:24 -05:00
2016-10-16 21:36:39 -04:00
2019-09-01 23:41:26 -05:00
2025-09-17 01:31:48 -05:00