1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Fix GCC's warning regarding enum vs non-enum values being compared (#8551)

This commit is contained in:
Michał Janiszewski
2019-01-04 21:29:44 +01:00
committed by GitHub
parent 7e769ed662
commit 8a70b29f64
7 changed files with 14 additions and 10 deletions

View File

@@ -160,7 +160,7 @@ namespace ObjectFactory
static uint8_t ParseSourceGame(const std::string& s)
{
static const std::unordered_map<std::string, uint8_t> LookupTable{
static const std::unordered_map<std::string, OBJECT_SOURCE_GAME> LookupTable{
{ "rct1", OBJECT_SOURCE_RCT1 },
{ "rct1aa", OBJECT_SOURCE_ADDED_ATTRACTIONS },
{ "rct1ll", OBJECT_SOURCE_LOOPY_LANDSCAPES },