Throw exception as per request
This commit is contained in:
parent
0949ecfb43
commit
a4622c7a40
1 changed files with 1 additions and 2 deletions
|
@ -75,14 +75,13 @@ public:
|
|||
const gamemap & map() const override { return *gm_; }
|
||||
const std::vector<team> & teams() const override { return *tm_; }
|
||||
const std::vector<std::string> & hidden_label_categories() const override { return *lbls_; }
|
||||
std::vector<std::string>& hidden_label_categories() override { return lbls_dummy_; }
|
||||
std::vector<std::string>& hidden_label_categories() override { throw "Writable hidden label categories not supported in this context"; }
|
||||
|
||||
private:
|
||||
const unit_map * um_;
|
||||
const gamemap * gm_;
|
||||
const std::vector<team> * tm_;
|
||||
const std::vector<std::string> * lbls_;
|
||||
std::vector<std::string> lbls_dummy_;
|
||||
};
|
||||
|
||||
class ignore_units_filter_context : public filter_context {
|
||||
|
|
Loading…
Add table
Reference in a new issue