X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcategory.cpp;h=bb2484dca021cbe11e52953ccf3f1c10ef65dbe7;hb=affc72bbd6ef9bcf2c5f94553a53582d42d40cc2;hp=4ceed1883df32f7e971bd8dcb594795f64fa831c;hpb=0388bdcffe5c2c3e720afa9aa911268eac9c32de;p=poefilter.git diff --git a/source/category.cpp b/source/category.cpp index 4ceed18..bb2484d 100644 --- a/source/category.cpp +++ b/source/category.cpp @@ -8,12 +8,17 @@ using namespace std; using namespace Msp; -Category::Category(const string &n): - name(n), +Category::Category(): condition(0), order(0) { } +Category::Category(const string &n, unsigned o): + name(n), + condition(0), + order(o) +{ } + Category::Category(const Category &other): name(other.name), condition(other.condition ? other.condition->clone() : 0), @@ -62,7 +67,6 @@ Category::Loader::Loader(Category &c, const PoeFilter &p, CompoundCondition *n): add_range("linked_sockets"); add_range("sockets"); add("or", &Loader::or_); - add("order", &Category::order); add_range("quality"); add_range("rarity"); add_range("width");