X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FInventory.cpp;h=793a0597f372f04b5668cff2777c9586ba15ce39;hb=107657a15613dfd6f02556e163abf6a4cb3cdd39;hp=275de538f49f83eb344b549d55f1b41fad81f10f;hpb=ee953c3847abc32c3e369672b7c35424f061765c;p=l2e.git diff --git a/src/common/Inventory.cpp b/src/common/Inventory.cpp index 275de53..793a059 100644 --- a/src/common/Inventory.cpp +++ b/src/common/Inventory.cpp @@ -1,10 +1,3 @@ -/* - * Inventory.cpp - * - * Created on: Aug 9, 2012 - * Author: holy - */ - #include "Inventory.h" #include "Item.h" @@ -84,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) {