From afdb73b18329d1e135340ac4a7aab952648fada8 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 26 May 2024 18:34:33 +0200 Subject: b --- editor/inspect-types.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'editor') diff --git a/editor/inspect-types.cpp b/editor/inspect-types.cpp index 520f0f3c..cb85f574 100644 --- a/editor/inspect-types.cpp +++ b/editor/inspect-types.cpp @@ -298,6 +298,9 @@ bool inspect_object_subtype(object& x) const auto type = x.type(); switch (type) { + case object_type::none: + case object_type::COUNT: + break; case object_type::scenery: { auto& sc = static_cast(x); const auto sc_type = sc.scenery_type(); @@ -315,9 +318,6 @@ bool inspect_object_subtype(object& x) } case object_type::critter: return inspect_type(static_cast(x), inspect_intent_t{}); case object_type::light: return inspect_type(static_cast(x), inspect_intent_t{}); - case object_type::none: - case object_type::COUNT: - break; } fm_warn_once("unknown object subtype '%d'", (int)type); return false; -- cgit v1.2.3