X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcategory.cpp;h=e697aeefac209d456bb2ac30d6f8bb1474d75e55;hb=HEAD;hp=5e454bb9dc7af7dcef5843efa9b4a3b96761404c;hpb=8b9d1f472e7bfbb1e097bb6d8bcad026e9636822;p=poefilter.git diff --git a/source/category.cpp b/source/category.cpp index 5e454bb..e697aee 100644 --- a/source/category.cpp +++ b/source/category.cpp @@ -49,8 +49,12 @@ void Category::create_statements(list &st) const if(condition) { Condition *flat = condition->flatten(); - flat->add_lines(st); - delete flat; + if(flat) + { + flat->add_lines(st); + delete flat; + } + // TODO handle the case of the entire condition being non-viable } } @@ -70,6 +74,7 @@ Category::Loader::Loader(Category &c, const PoeFilter &p, CompoundCondition *n): add_range("item_level"); add("linked_colors", &Loader::linked_colors); add_range("linked_sockets"); + add_range("map_tier"); add_range("sockets"); add("or", &Loader::or_); add_range("quality");