mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
[General] Change "unsigned long" to uint32_t for cross platform compatibility
This commit is contained in:
parent
23684489da
commit
779f2a564d
1 changed files with 5 additions and 5 deletions
|
@ -16,7 +16,7 @@ void PacketPlayerActiveSkills::Packet(RakNet::BitStream *bs, bool send)
|
||||||
{
|
{
|
||||||
PlayerPacket::Packet(bs, send);
|
PlayerPacket::Packet(bs, send);
|
||||||
|
|
||||||
unsigned long spells = 0;
|
uint32_t spells = 0;
|
||||||
|
|
||||||
if (send)
|
if (send)
|
||||||
spells = player->activeSpells.mSpells.size();
|
spells = player->activeSpells.mSpells.size();
|
||||||
|
@ -29,7 +29,7 @@ void PacketPlayerActiveSkills::Packet(RakNet::BitStream *bs, bool send)
|
||||||
{
|
{
|
||||||
RW(spell->first, true);
|
RW(spell->first, true);
|
||||||
RW(spell->second.mTimeStamp, true);
|
RW(spell->second.mTimeStamp, true);
|
||||||
unsigned long effects = spell->second.mEffects.size();
|
uint32_t effects = spell->second.mEffects.size();
|
||||||
RW(effects, true);
|
RW(effects, true);
|
||||||
|
|
||||||
for (std::vector<ESM::ActiveEffect>::const_iterator effect = spell->second.mEffects.begin();
|
for (std::vector<ESM::ActiveEffect>::const_iterator effect = spell->second.mEffects.begin();
|
||||||
|
@ -38,17 +38,17 @@ void PacketPlayerActiveSkills::Packet(RakNet::BitStream *bs, bool send)
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
for (unsigned int i = 0; i < spells; i++)
|
for (uint32_t i = 0; i < spells; i++)
|
||||||
{
|
{
|
||||||
ESM::ActiveSpells::TContainer::value_type spell;
|
ESM::ActiveSpells::TContainer::value_type spell;
|
||||||
|
|
||||||
RW(spell.first, false);
|
RW(spell.first, false);
|
||||||
RW(spell.second.mTimeStamp, false);
|
RW(spell.second.mTimeStamp, false);
|
||||||
unsigned long effects;
|
uint32_t effects;
|
||||||
RW(effects, false);
|
RW(effects, false);
|
||||||
|
|
||||||
ESM::ActiveEffect effect;
|
ESM::ActiveEffect effect;
|
||||||
for (unsigned int j = 0; j < effects; j++)
|
for (uint32_t j = 0; j < effects; j++)
|
||||||
{
|
{
|
||||||
RW(effect, false);
|
RW(effect, false);
|
||||||
spell.second.mEffects.push_back(effect);
|
spell.second.mEffects.push_back(effect);
|
||||||
|
|
Loading…
Reference in a new issue