diff --git a/components/openmw-mp/Packets/Player/PacketPlayerAttribute.cpp b/components/openmw-mp/Packets/Player/PacketPlayerAttribute.cpp index 03cc51d69..28708bbc0 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerAttribute.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerAttribute.cpp @@ -13,9 +13,9 @@ void PacketPlayerAttribute::Packet(RakNet::BitStream *bs, bool send) { PlayerPacket::Packet(bs, send); - unsigned count; + uint32_t count; if (send) - count = (unsigned int)(player->attributeChanges.attributeIndexes.size()); + count = static_cast(player->attributeChanges.attributeIndexes.size()); RW(count, send);