diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index c4799cd71a..ba4daa73ef 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -2303,10 +2303,14 @@ static void OutputContentState(const ContentInfo &ci) static constexpr EnumIndexArray types{ "", "Base graphics", "NewGRF", "AI", "AI library", "Scenario", "Heightmap", "Base sound", "Base music", "Game script", "GS library" }; - static const std::string_view states[] = { "Not selected", "Selected", "Dep Selected", "Installed", "Unknown" }; - static const TextColour state_to_colour[] = { CC_COMMAND, CC_INFO, CC_INFO, CC_WHITE, CC_ERROR }; + static constexpr EnumIndexArray states{ + "Not selected", "Selected", "Dep Selected", "Installed", "Unknown" + }; + static constexpr EnumIndexArray state_to_colour{ + CC_COMMAND, CC_INFO, CC_INFO, CC_WHITE, CC_ERROR + }; - IConsolePrint(state_to_colour[to_underlying(ci.state)], "{}, {}, {}, {}, {:08X}, {}", ci.id, types[ci.type], states[to_underlying(ci.state)], ci.name, ci.unique_id, FormatArrayAsHex(ci.md5sum)); + IConsolePrint(state_to_colour[ci.state], "{}, {}, {}, {}, {:08X}, {}", ci.id, types[ci.type], states[ci.state], ci.name, ci.unique_id, FormatArrayAsHex(ci.md5sum)); } /** Downloading of content from the server. @copydoc IConsoleCmdProc */ diff --git a/src/network/core/tcp_content_type.h b/src/network/core/tcp_content_type.h index 5169903828..b27ed46527 100644 --- a/src/network/core/tcp_content_type.h +++ b/src/network/core/tcp_content_type.h @@ -53,6 +53,7 @@ struct ContentInfo { AlreadyHere, ///< The content is already at the client side DoesNotExist, ///< The content does not exist in the content system Invalid, ///< The content's invalid + End, ///< End marker. }; ContentType type = ContentType::Invalid; ///< Type of content