Skip to content

Commit

Permalink
Core/Weather: Fix small weather system bug
Browse files Browse the repository at this point in the history
cmangos/mangos-wotlk@5ef2f17
(cherry picked from commit 2df2f56)
  • Loading branch information
Kittnz authored and DDuarte committed Mar 23, 2016
1 parent 22e425b commit 18e6b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Weather/Weather.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 18e6b25

Please sign in to comment.