Core/Packet: Correction to packetsize for SMSG_WEATHER

This commit is contained in:
click committed 2015-04-02 02:46:25 +02:00
1 parent 5f803991b7
commit d8ef63040a
2 files changed
+9 -5

No files matched your search

+4 -2
View File
@@ -143,8 +143,10 @@ void LoadWeatherData()
void SendFineWeatherUpdateToPlayer(Player* player)
{
WorldPacket data(SMSG_WEATHER, (4+4+4));
data << (uint32)WEATHER_STATE_FINE << (float)0.0f << uint8(0);
WorldPacket data(SMSG_WEATHER, (4 + 4 + 1));
data << (uint32)WEATHER_STATE_FINE;
data << (float)0.0f;
data << uint8(0);
player->GetSession()->SendPacket(&data);
}