From a546d990003135b6b8f88b5db04633df471c13aa Mon Sep 17 00:00:00 2001 From: Koncord Date: Tue, 28 Nov 2017 22:10:27 +0800 Subject: [PATCH] [General] Fix type --- components/openmw-mp/Packets/Player/PacketPlayerAttribute.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);