From 61d46a790cfde35bedf4283cbbcce06639cce1ec Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 19 Mar 2023 10:42:54 +0100 Subject: src/entity: move type data member to vtable --- test/serializer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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(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()); } } } -- cgit v1.2.3