Files
coa-bagnon/Bagnon
florian.berthold da2d323018 fix(sort): refuse to sort inventory when read is inconsistent with server
Post-sort holes were caused by the planning phase, not the execution
phase. When GetContainerItemInfo/Link transiently returns nil for an
occupied slot during server lag, CreateBagFromID marks it <EMPTY>, the
sort algorithm moves real items into that "destination", and we end up
with literal gaps where the misclassified items used to be.

Validate the read against GetContainerNumFreeSlots before sorting; if
counts disagree, print a chat warning and abort instead of corrupting
the layout. User retries after a moment.
2026-05-16 10:36:16 +02:00
..
2022-10-21 06:37:39 -07:00
2022-10-21 06:37:39 -07:00
2022-10-21 06:37:39 -07:00
2022-10-21 06:37:39 -07:00
2022-10-21 06:37:39 -07:00