aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKittnz <frederik156@hotmail.com>2016-02-23 17:36:31 +0100
committerDDuarte <dnpd.dd@gmail.com>2016-03-23 19:16:52 +0000
commit18e6b2574fc18e6c4b8a9c40529e96d715bfb9d5 (patch)
treec10fb4d5948ba04e877474aa25f0bc89e1413215
parent22e425bc58090973fefb0f18b88b83dc27708e4c (diff)
Core/Weather: Fix small weather system bug
https://github.com/cmangos/mangos-wotlk/commit/5ef2f17 (cherry picked from commit 2df2f56f8c1cfdaf47e3e5853d7d9a80c217cc20)
-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 393080f044a..92140fbc2af 100644
--- a/src/server/game/Weather/Weather.cpp
+++ b/src/server/game/Weather/Weather.cpp
@@ -153,7 +153,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)