aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Weather/WeatherMgr.cpp
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2012-03-27 15:47:40 +0100
committerNay <dnpd.dd@gmail.com>2012-03-27 15:47:40 +0100
commite40eb4bfbcbbd62aca97a9aaa9c203500582dca7 (patch)
tree34a4070df2e445968793b66ef9c06d9153bd82ed /src/server/game/Weather/WeatherMgr.cpp
parent13757731b743acb50e99fc0d0bda34382085da51 (diff)
Core/DBLayer: Correct few more wrong read types (No. 2)
DB/World: Some consistency in the ints "length" field (not really a length) From A to G world tables verified; missing all the others
Diffstat (limited to 'src/server/game/Weather/WeatherMgr.cpp')
-rwxr-xr-xsrc/server/game/Weather/WeatherMgr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Weather/WeatherMgr.cpp b/src/server/game/Weather/WeatherMgr.cpp
index 41241583ea1..bb8fadf08bc 100755
--- a/src/server/game/Weather/WeatherMgr.cpp
+++ b/src/server/game/Weather/WeatherMgr.cpp
@@ -108,9 +108,9 @@ void LoadWeatherData()
for (uint8 season = 0; season < WEATHER_SEASONS; ++season)
{
- wzc.data[season].rainChance = fields[season * (MAX_WEATHER_TYPE-1) + 1].GetUInt32();
- wzc.data[season].snowChance = fields[season * (MAX_WEATHER_TYPE-1) + 2].GetUInt32();
- wzc.data[season].stormChance = fields[season * (MAX_WEATHER_TYPE-1) + 3].GetUInt32();
+ wzc.data[season].rainChance = fields[season * (MAX_WEATHER_TYPE-1) + 1].GetUInt8();
+ wzc.data[season].snowChance = fields[season * (MAX_WEATHER_TYPE-1) + 2].GetUInt8();
+ wzc.data[season].stormChance = fields[season * (MAX_WEATHER_TYPE-1) + 3].GetUInt8();
if (wzc.data[season].rainChance > 100)
{