Skip to content

Commit

Permalink
Throw exception as per request
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jul 11, 2019
1 parent 0949ecf commit a4622c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pathfind/teleport.cpp
Expand Up @@ -75,14 +75,13 @@ class ignore_units_display_context : public display_context {
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 {
Expand Down

0 comments on commit a4622c7

Please sign in to comment.