]> git.localhorst.tv Git - l2e.git/commitdiff
Merge branch 'master' into feature-33-capsules
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 9 Dec 2012 14:30:43 +0000 (15:30 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 9 Dec 2012 14:30:43 +0000 (15:30 +0100)
needed for fixed cbp file

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) {