X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FInventory.cpp;fp=src%2Fcommon%2FInventory.cpp;h=793a0597f372f04b5668cff2777c9586ba15ce39;hb=67f6bb1d9727e7d1e2140cf2913aa89ebba84bf5;hp=e279ac5856d0b608a1866fd97a3e26193f16286a;hpb=59c735f03e5959ab6a32afac1603f1e371786ed7;p=l2e.git diff --git a/src/common/Inventory.cpp b/src/common/Inventory.cpp index e279ac5..793a059 100644 --- a/src/common/Inventory.cpp +++ b/src/common/Inventory.cpp @@ -77,7 +77,7 @@ bool Inventory::AddScenarioItem(const Item *i) { void Inventory::Sort() { - std::sort(entries, entries + 96, Entry::Less); + std::stable_sort(entries, entries + 96, Entry::Less); } bool Inventory::Entry::Less(const Entry &lhs, const Entry &rhs) {