1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 06:47:45 +00:00
This commit is contained in:
goaaats 2018-02-01 16:28:03 +01:00
parent c460283ca6
commit 4f22c20fa8

View file

@ -235,12 +235,12 @@ uint8_t Zone::getNextWeather()
uint8_t sumPc = 0; uint8_t sumPc = 0;
for( size_t i = 0; i < 16; ) for( size_t i = 0; i < 16; )
{ {
int32_t weatherId = boost::get<int32_t>( weatherRateFields[i] ); int32_t weatherId = boost::get< int32_t >( weatherRateFields[i] );
if( weatherId == 0 ) if( weatherId == 0 )
break; break;
sumPc += boost::get<uint8_t>( weatherRateFields[i + 1] ); sumPc += boost::get< uint8_t >( weatherRateFields[i + 1] );
weatherRateMap[sumPc] = weatherId; weatherRateMap[sumPc] = weatherId;
i += 2; i += 2;