]> git.localhorst.tv Git - l2e.git/commitdiff
use stable_sort for sorting inventory
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 2 Dec 2012 23:01:08 +0000 (00:01 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 2 Dec 2012 23:01:08 +0000 (00:01 +0100)
src/common/Inventory.cpp

index e279ac5856d0b608a1866fd97a3e26193f16286a..793a0597f372f04b5668cff2777c9586ba15ce39 100644 (file)
@@ -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) {