diff options
author | Kittnz <frederik156@hotmail.com> | 2016-02-23 17:36:31 +0100 |
---|---|---|
committer | Kittnz <frederik156@hotmail.com> | 2016-02-23 17:36:31 +0100 |
commit | 2df2f56f8c1cfdaf47e3e5853d7d9a80c217cc20 (patch) | |
tree | fb4a1d12c1bf622e3362fcfe8cf418390a51a191 /src | |
parent | c0c94d0e3179cdd336783890116f0cb7afbda5ca (diff) |
Core/Weather: Fix small weather system bug
https://github.com/cmangos/mangos-wotlk/commit/5ef2f17
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Weather/Weather.cpp | 2 |
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) |