diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-19 10:42:54 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-19 10:42:54 +0100 |
commit | 61d46a790cfde35bedf4283cbbcce06639cce1ec (patch) | |
tree | ffdbda2cb8fc4e47144aa25458e8191488cea478 /test/serializer.cpp | |
parent | b93313e438c7b943e506f3c16675e5d38edd0537 (diff) |
src/entity: move type data member to vtable
Diffstat (limited to 'test/serializer.cpp')
-rw-r--r-- | test/serializer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/serializer.cpp b/test/serializer.cpp index 62c3365e..236003cf 100644 --- a/test/serializer.cpp +++ b/test/serializer.cpp @@ -59,8 +59,8 @@ void assert_chunks_equal(const chunk& a, const chunk& b) { const auto& ae = *a.entities()[i]; const auto& be = *b.entities()[i]; - fm_assert(ae.type == be.type); - switch (ae.type) + fm_assert(ae.type() == be.type()); + switch (ae.type()) { case entity_type::character: { const auto& e1 = static_cast<const character&>(ae); @@ -77,7 +77,7 @@ void assert_chunks_equal(const chunk& a, const chunk& b) break; } default: - fm_abort("invalid entity type '%d'", (int)ae.type); + fm_abort("invalid entity type '%d'", (int)ae.type()); } } } |