From 2df2f56f8c1cfdaf47e3e5853d7d9a80c217cc20 Mon Sep 17 00:00:00 2001 From: Kittnz Date: Tue, 23 Feb 2016 17:36:31 +0100 Subject: Core/Weather: Fix small weather system bug https://github.com/cmangos/mangos-wotlk/commit/5ef2f17 --- src/server/game/Weather/Weather.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3