aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKittnz <frederik156@hotmail.com>2016-02-23 17:36:31 +0100
committerKittnz <frederik156@hotmail.com>2016-02-23 17:36:31 +0100
commit2df2f56f8c1cfdaf47e3e5853d7d9a80c217cc20 (patch)
treefb4a1d12c1bf622e3362fcfe8cf418390a51a191
parentc0c94d0e3179cdd336783890116f0cb7afbda5ca (diff)
Core/Weather: Fix small weather system bug
https://github.com/cmangos/mangos-wotlk/commit/5ef2f17
-rw-r--r--src/server/game/Weather/Weather.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Weather/Weather.cpp b/src/server/game/Weather/Weather.cpp
index f774916f4a5..7ef16e32031 100644
--- a/src/server/game/Weather/Weather.cpp
+++ b/src/server/game/Weather/Weather.cpp
@@ -152,7 +152,7 @@ bool Weather::ReGenerate()
uint32 chance2 = chance1+ m_weatherChances->data[season].snowChance;
uint32 chance3 = chance2+ m_weatherChances->data[season].stormChance;
- uint32 rnd = urand(0, 99);
+ uint32 rnd = urand(1, 100);
if (rnd <= chance1)
m_type = WEATHER_TYPE_RAIN;
else if (rnd <= chance2)