aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Chat/Commands
diff options
context:
space:
mode:
authorSpp <spp@jorge.gr>2011-09-28 11:38:56 +0200
committerSpp <spp@jorge.gr>2011-09-28 11:38:56 +0200
commitb93067350cdd2bc80b907908473f563b25a7e378 (patch)
treea8bed7689a1cd394c351c5d46861aeef189c873b /src/server/game/Chat/Commands
parentcc06c4188742578fef36917a33a09cb831dcb469 (diff)
Core/WeatherMgr: singleton converted to namespace with free functions. Note how RAII saves your life and removes the need in explicit delete :)
Diffstat (limited to 'src/server/game/Chat/Commands')
-rwxr-xr-xsrc/server/game/Chat/Commands/Level3.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Chat/Commands/Level3.cpp b/src/server/game/Chat/Commands/Level3.cpp
index f24077efd39..55361ebc498 100755
--- a/src/server/game/Chat/Commands/Level3.cpp
+++ b/src/server/game/Chat/Commands/Level3.cpp
@@ -2372,10 +2372,10 @@ bool ChatHandler::HandleChangeWeather(const char *args)
Player* player = m_session->GetPlayer();
uint32 zoneid = player->GetZoneId();
- Weather* wth = sWeatherMgr->FindWeather(zoneid);
+ Weather* wth = WeatherMgr::FindWeather(zoneid);
if (!wth)
- wth = sWeatherMgr->AddWeather(zoneid);
+ wth = WeatherMgr::AddWeather(zoneid);
if (!wth)
{
SendSysMessage(LANG_NO_WEATHER);