From f27ecc2963d8a1b6300a99afe49f7d8d7d40876b Mon Sep 17 00:00:00 2001 From: Kittnz Date: Thu, 20 Apr 2017 06:08:25 +0200 Subject: [PATCH] Core/Weather: Fix small weather system bug (#431) cmangos/mangos-wotlk@5ef2f17 --- src/game/Weather.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Weather.cpp b/src/game/Weather.cpp index 3a718830d..dd891c281 100644 --- a/src/game/Weather.cpp +++ b/src/game/Weather.cpp @@ -163,7 +163,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)