diff options
Diffstat (limited to 'src/scenery.hpp')
-rw-r--r-- | src/scenery.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scenery.hpp b/src/scenery.hpp index 2939fe7d..68ba1607 100644 --- a/src/scenery.hpp +++ b/src/scenery.hpp @@ -30,6 +30,7 @@ struct scenery_proto : entity_proto scenery_proto(const scenery_proto&); ~scenery_proto() noexcept override; scenery_proto& operator=(const scenery_proto&); + bool operator==(const entity_proto& proto) const override; operator bool() const; }; @@ -43,7 +44,7 @@ struct scenery final : entity bool can_activate(std::size_t i) const override; bool activate(std::size_t i) override; bool update(std::size_t i, float dt) override; - bool operator==(const entity_proto& p) const override; + explicit operator scenery_proto() const; private: friend struct world; |