From 99158beb2e9fba3d97c4d2f0df44d5a7559cd19b Mon Sep 17 00:00:00 2001 From: Koncord Date: Tue, 3 Jul 2018 03:32:46 +0800 Subject: [PATCH] [General] Change effectCount type to unsigned --- components/openmw-mp/Packets/Player/PacketPlayerSpellbook.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/openmw-mp/Packets/Player/PacketPlayerSpellbook.cpp b/components/openmw-mp/Packets/Player/PacketPlayerSpellbook.cpp index ffcf22d33..be0034ee3 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerSpellbook.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerSpellbook.cpp @@ -39,13 +39,13 @@ void PacketPlayerSpellbook::Packet(RakNet::BitStream *bs, bool send) RW(spell.mData.mCost, send, true); RW(spell.mData.mFlags, send, true); - int effectCount = 0; + uint32_t effectCount = 0; if (send) effectCount = spell.mEffects.mList.size(); RW(effectCount, send, true); - for (unsigned int j = 0; j < effectCount; j++) + for (uint32_t j = 0; j < effectCount; j++) { ESM::ENAMstruct effect; if (send)