From 05723ad1e8a9a928773b6a76335f6b1f568788a8 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Fri, 14 Oct 2022 17:57:55 -0500 Subject: [PATCH] [Hotfix] Return weather_type_map --- common/emu_constants.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 +}