diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-17 07:01:45 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-17 23:23:11 +0100 |
commit | 34ae7b665919d05660263bf522c78ebdb735d30d (patch) | |
tree | d58a83c5b5b71763c71e51cf421079380cac00c1 /src/entity.hpp | |
parent | 34a0239ad6e6d84bd0027d9029d0d74419247d01 (diff) |
aaa
Diffstat (limited to 'src/entity.hpp')
-rw-r--r-- | src/entity.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/entity.hpp b/src/entity.hpp index 9c6dc2d1..da6ccca3 100644 --- a/src/entity.hpp +++ b/src/entity.hpp @@ -29,7 +29,7 @@ struct entity_proto entity_proto(); entity_proto(const entity_proto&); - bool operator==(const entity_proto&) const; + virtual bool operator==(const entity_proto&) const; virtual ~entity_proto() noexcept; }; @@ -56,8 +56,7 @@ struct entity struct chunk& chunk() const; std::size_t index() const; - virtual bool operator==(const entity_proto& e0) const; - operator entity_proto() const; + explicit operator entity_proto() const; virtual bool can_activate(std::size_t i) const; virtual bool activate(std::size_t i); |