[Hotfix] Return weather_type_map

This commit is contained in:
Akkadius 2022-10-14 17:57:55 -05:00
parent 4c7a625d7c
commit 05723ad1e8

View File

@ -514,13 +514,15 @@ std::string EQ::constants::GetObjectTypeName(int object_type)
return std::string();
}
const std::map<uint8, std::string>& EQ::constants::GetWeatherTypeMap()
const std::map<uint8, std::string> &EQ::constants::GetWeatherTypeMap()
{
static const std::map<uint8, std::string> weather_type_map ={
{ WeatherTypes::None, "None" },
{ WeatherTypes::Raining, "Raining" },
{ WeatherTypes::Snowing, "Snowing" }
static const std::map<uint8, std::string> 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();
}
}