From: Daniel Karbach Date: Sun, 2 Dec 2012 23:01:08 +0000 (+0100) Subject: use stable_sort for sorting inventory X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=107657a15613dfd6f02556e163abf6a4cb3cdd39;p=l2e.git use stable_sort for sorting inventory --- 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) {