diff --git a/common/emu_constants.cpp b/common/emu_constants.cpp index 5f02075ad..8e26f2fb6 100644 --- a/common/emu_constants.cpp +++ b/common/emu_constants.cpp @@ -514,13 +514,15 @@ std::string EQ::constants::GetObjectTypeName(int object_type) return std::string(); } -const std::map& EQ::constants::GetWeatherTypeMap() +const std::map &EQ::constants::GetWeatherTypeMap() { - static const std::map weather_type_map ={ - { WeatherTypes::None, "None" }, - { WeatherTypes::Raining, "Raining" }, - { WeatherTypes::Snowing, "Snowing" } + static const std::map weather_type_map = { + {WeatherTypes::None, "None"}, + {WeatherTypes::Raining, "Raining"}, + {WeatherTypes::Snowing, "Snowing"} }; + + return weather_type_map; } std::string EQ::constants::GetWeatherTypeName(uint8 weather_type) @@ -530,4 +532,4 @@ std::string EQ::constants::GetWeatherTypeName(uint8 weather_type) } return std::string(); -} \ No newline at end of file +}