From 107657a15613dfd6f02556e163abf6a4cb3cdd39 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Mon, 3 Dec 2012 00:01:08 +0100 Subject: [PATCH] use stable_sort for sorting inventory --- src/common/Inventory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.2