Fix TC build

This commit is contained in:
Rochet2
2019-07-17 20:49:08 +03:00
parent d2b3bc867e
commit 897d5e9159
2 changed files with 13 additions and 4 deletions

View File

@@ -268,7 +268,10 @@ namespace LuaMap
uint32 weatherType = Eluna::CHECKVAL<uint32>(L, 3);
float grade = Eluna::CHECKVAL<float>(L, 4);
#if defined TRINITY || AZEROTHCORE
#if defined TRINITY
if (Weather * weather = map->GetOrGenerateZoneDefaultWeather(zoneId))
weather->SetWeather((WeatherType)weatherType, grade);
#elif defined AZEROTHCORE
Weather* weather = WeatherMgr::FindWeather(zoneId);
if (!weather)
weather = WeatherMgr::AddWeather(zoneId);