From 23684489da51cece12cdd0d785c83e4479d259a8 Mon Sep 17 00:00:00 2001 From: Koncord Date: Tue, 3 Jul 2018 02:50:21 +0800 Subject: [PATCH] [General] Fix clang-tidy warning Converting integer literal to bool, use bool literal instead --- .../openmw-mp/Packets/Actor/ActorPacket.cpp | 4 +-- .../openmw-mp/Packets/Actor/PacketActorAI.cpp | 2 +- .../Packets/Actor/PacketActorAttack.cpp | 2 +- .../Packets/Actor/PacketActorAuthority.cpp | 4 +-- .../Packets/Actor/PacketActorCellChange.cpp | 8 +++--- .../Packets/Actor/PacketActorPosition.cpp | 4 +-- .../openmw-mp/Packets/Object/ObjectPacket.cpp | 4 +-- .../Packets/Object/PacketDoorDestination.cpp | 10 +++---- .../Packets/Object/PacketObjectSpawn.cpp | 2 +- .../Packets/Player/PacketPlayerAttack.cpp | 6 ++-- .../Packets/Player/PacketPlayerBaseInfo.cpp | 12 ++++---- .../Packets/Player/PacketPlayerBook.cpp | 2 +- .../Packets/Player/PacketPlayerCellChange.cpp | 8 +++--- .../Packets/Player/PacketPlayerCellState.cpp | 4 +-- .../Packets/Player/PacketPlayerClass.cpp | 6 ++-- .../Packets/Player/PacketPlayerDeath.hpp | 2 +- .../Packets/Player/PacketPlayerFaction.cpp | 2 +- .../Packets/Player/PacketPlayerInventory.cpp | 2 +- .../Packets/Player/PacketPlayerJail.cpp | 4 +-- .../Packets/Player/PacketPlayerJournal.cpp | 4 +-- .../Packets/Player/PacketPlayerKillCount.cpp | 2 +- .../Player/PacketPlayerMiscellaneous.cpp | 6 ++-- .../Packets/Player/PacketPlayerMomentum.cpp | 2 +- .../Packets/Player/PacketPlayerPosition.cpp | 6 ++-- .../Packets/Player/PacketPlayerShapeshift.cpp | 2 +- .../Packets/Player/PacketPlayerSpellbook.cpp | 28 +++++++++---------- .../Packets/Player/PacketPlayerTopic.cpp | 2 +- 27 files changed, 70 insertions(+), 70 deletions(-) diff --git a/components/openmw-mp/Packets/Actor/ActorPacket.cpp b/components/openmw-mp/Packets/Actor/ActorPacket.cpp index ed0b703b8..38eca39a7 100644 --- a/components/openmw-mp/Packets/Actor/ActorPacket.cpp +++ b/components/openmw-mp/Packets/Actor/ActorPacket.cpp @@ -51,8 +51,8 @@ bool ActorPacket::PacketHeader(RakNet::BitStream *bs, bool send) { BasePacket::Packet(bs, send); - RW(actorList->cell.mData, send, 1); - RW(actorList->cell.mName, send, 1); + RW(actorList->cell.mData, send, true); + RW(actorList->cell.mName, send, true); if (send) actorList->count = (unsigned int)(actorList->baseActors.size()); diff --git a/components/openmw-mp/Packets/Actor/PacketActorAI.cpp b/components/openmw-mp/Packets/Actor/PacketActorAI.cpp index 99270bddd..2b9390cae 100644 --- a/components/openmw-mp/Packets/Actor/PacketActorAI.cpp +++ b/components/openmw-mp/Packets/Actor/PacketActorAI.cpp @@ -24,7 +24,7 @@ void PacketActorAI::Actor(BaseActor &actor, bool send) } else { - RW(actor.aiTarget.refId, send, 1); + RW(actor.aiTarget.refId, send, true); RW(actor.aiTarget.refNumIndex, send); RW(actor.aiTarget.mpNum, send); } diff --git a/components/openmw-mp/Packets/Actor/PacketActorAttack.cpp b/components/openmw-mp/Packets/Actor/PacketActorAttack.cpp index 324f7fb84..4c12d6ac7 100644 --- a/components/openmw-mp/Packets/Actor/PacketActorAttack.cpp +++ b/components/openmw-mp/Packets/Actor/PacketActorAttack.cpp @@ -19,7 +19,7 @@ void PacketActorAttack::Actor(BaseActor &actor, bool send) } else { - RW(actor.attack.target.refId, send, 1); + RW(actor.attack.target.refId, send, true); RW(actor.attack.target.refNumIndex, send); RW(actor.attack.target.mpNum, send); } diff --git a/components/openmw-mp/Packets/Actor/PacketActorAuthority.cpp b/components/openmw-mp/Packets/Actor/PacketActorAuthority.cpp index a1886dc9c..11157cba1 100644 --- a/components/openmw-mp/Packets/Actor/PacketActorAuthority.cpp +++ b/components/openmw-mp/Packets/Actor/PacketActorAuthority.cpp @@ -12,6 +12,6 @@ void PacketActorAuthority::Packet(RakNet::BitStream *bs, bool send) { BasePacket::Packet(bs, send); - RW(actorList->cell.mData, send, 1); - RW(actorList->cell.mName, send, 1); + RW(actorList->cell.mData, send, true); + RW(actorList->cell.mName, send, true); } diff --git a/components/openmw-mp/Packets/Actor/PacketActorCellChange.cpp b/components/openmw-mp/Packets/Actor/PacketActorCellChange.cpp index 394c181ed..d6e9fc8fc 100644 --- a/components/openmw-mp/Packets/Actor/PacketActorCellChange.cpp +++ b/components/openmw-mp/Packets/Actor/PacketActorCellChange.cpp @@ -11,9 +11,9 @@ PacketActorCellChange::PacketActorCellChange(RakNet::RakPeerInterface *peer) : A void PacketActorCellChange::Actor(BaseActor &actor, bool send) { - RW(actor.cell.mData, send, 1); - RW(actor.cell.mName, send, 1); + RW(actor.cell.mData, send, true); + RW(actor.cell.mName, send, true); - RW(actor.position, send, 1); - RW(actor.direction, send, 1); + RW(actor.position, send, true); + RW(actor.direction, send, true); } diff --git a/components/openmw-mp/Packets/Actor/PacketActorPosition.cpp b/components/openmw-mp/Packets/Actor/PacketActorPosition.cpp index 53c6c8e8b..238eb0f1e 100644 --- a/components/openmw-mp/Packets/Actor/PacketActorPosition.cpp +++ b/components/openmw-mp/Packets/Actor/PacketActorPosition.cpp @@ -11,8 +11,8 @@ PacketActorPosition::PacketActorPosition(RakNet::RakPeerInterface *peer) : Actor void PacketActorPosition::Actor(BaseActor &actor, bool send) { - RW(actor.position, send, 1); - RW(actor.direction, send, 1); + RW(actor.position, send, true); + RW(actor.direction, send, true); actor.hasPositionData = true; } diff --git a/components/openmw-mp/Packets/Object/ObjectPacket.cpp b/components/openmw-mp/Packets/Object/ObjectPacket.cpp index c979d0d25..053938b4f 100644 --- a/components/openmw-mp/Packets/Object/ObjectPacket.cpp +++ b/components/openmw-mp/Packets/Object/ObjectPacket.cpp @@ -63,8 +63,8 @@ bool ObjectPacket::PacketHeader(RakNet::BitStream *bs, bool send) if (hasCellData) { - RW(objectList->cell.mData, send, 1); - RW(objectList->cell.mName, send, 1); + RW(objectList->cell.mData, send, true); + RW(objectList->cell.mName, send, true); } return true; diff --git a/components/openmw-mp/Packets/Object/PacketDoorDestination.cpp b/components/openmw-mp/Packets/Object/PacketDoorDestination.cpp index 5a2c9d43e..efceccf32 100644 --- a/components/openmw-mp/Packets/Object/PacketDoorDestination.cpp +++ b/components/openmw-mp/Packets/Object/PacketDoorDestination.cpp @@ -17,11 +17,11 @@ void PacketDoorDestination::Object(BaseObject &baseObject, bool send) if (baseObject.teleportState) { - RW(baseObject.destinationCell.mData, send, 1); - RW(baseObject.destinationCell.mName, send, 1); + RW(baseObject.destinationCell.mData, send, true); + RW(baseObject.destinationCell.mName, send, true); - RW(baseObject.destinationPosition.pos, send, 1); - RW(baseObject.destinationPosition.rot[0], send, 1); - RW(baseObject.destinationPosition.rot[2], send, 1); + RW(baseObject.destinationPosition.pos, send, true); + RW(baseObject.destinationPosition.rot[0], send, true); + RW(baseObject.destinationPosition.rot[2], send, true); } } diff --git a/components/openmw-mp/Packets/Object/PacketObjectSpawn.cpp b/components/openmw-mp/Packets/Object/PacketObjectSpawn.cpp index 9073d2557..eb93b3558 100644 --- a/components/openmw-mp/Packets/Object/PacketObjectSpawn.cpp +++ b/components/openmw-mp/Packets/Object/PacketObjectSpawn.cpp @@ -27,7 +27,7 @@ void PacketObjectSpawn::Object(BaseObject &baseObject, bool send) } else { - RW(baseObject.master.refId, send, 1); + RW(baseObject.master.refId, send, true); RW(baseObject.master.refNumIndex, send); RW(baseObject.master.mpNum, send); } diff --git a/components/openmw-mp/Packets/Player/PacketPlayerAttack.cpp b/components/openmw-mp/Packets/Player/PacketPlayerAttack.cpp index 71dbf9881..6b5807060 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerAttack.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerAttack.cpp @@ -24,15 +24,15 @@ void PacketPlayerAttack::Packet(RakNet::BitStream *bs, bool send) } else { - RW(player->attack.target.refId, send, 1); + RW(player->attack.target.refId, send, true); RW(player->attack.target.refNumIndex, send); RW(player->attack.target.mpNum, send); } - RW(player->attack.spellId, send, 1); + RW(player->attack.spellId, send, true); RW(player->attack.type, send); RW(player->attack.success, send); - RW(player->attack.damage, send, 0); // never compress damage + RW(player->attack.damage, send, false); // never compress damage RW(player->attack.pressed, send); RW(player->attack.knockdown, send); diff --git a/components/openmw-mp/Packets/Player/PacketPlayerBaseInfo.cpp b/components/openmw-mp/Packets/Player/PacketPlayerBaseInfo.cpp index 6247c4bd4..cd3c5ad27 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerBaseInfo.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerBaseInfo.cpp @@ -16,15 +16,15 @@ void PacketPlayerBaseInfo::Packet(RakNet::BitStream *bs, bool send) { PlayerPacket::Packet(bs, send); - RW(player->npc.mName, send, 1); - RW(player->npc.mModel, send, 1); - RW(player->npc.mRace, send, 1); - RW(player->npc.mHair, send, 1); - RW(player->npc.mHead, send, 1); + RW(player->npc.mName, send, true); + RW(player->npc.mModel, send, true); + RW(player->npc.mRace, send, true); + RW(player->npc.mHair, send, true); + RW(player->npc.mHead, send, true); RW(player->npc.mFlags, send); - RW(player->birthsign, send, 1); + RW(player->birthsign, send, true); RW(player->resetStats, send); } diff --git a/components/openmw-mp/Packets/Player/PacketPlayerBook.cpp b/components/openmw-mp/Packets/Player/PacketPlayerBook.cpp index 2e2531fc5..cc3978ae7 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerBook.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerBook.cpp @@ -27,7 +27,7 @@ void PacketPlayerBook::Packet(RakNet::BitStream *bs, bool send) if (send) book = player->bookChanges.books.at(i); - RW(book.bookId, send, 1); + RW(book.bookId, send, true); if (!send) player->bookChanges.books.push_back(book); diff --git a/components/openmw-mp/Packets/Player/PacketPlayerCellChange.cpp b/components/openmw-mp/Packets/Player/PacketPlayerCellChange.cpp index 4bb05b1a8..dbf5a4e2e 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerCellChange.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerCellChange.cpp @@ -17,13 +17,13 @@ void mwmp::PacketPlayerCellChange::Packet(RakNet::BitStream *bs, bool send) { PlayerPacket::Packet(bs, send); - RW(player->cell.mData, send, 1); - RW(player->cell.mName, send, 1); + RW(player->cell.mData, send, true); + RW(player->cell.mName, send, true); - RW(player->previousCellPosition.pos, send, 1); + RW(player->previousCellPosition.pos, send, true); RW(player->isChangingRegion, send); if (player->isChangingRegion) - RW(player->cell.mRegion, send, 1); + RW(player->cell.mRegion, send, true); } diff --git a/components/openmw-mp/Packets/Player/PacketPlayerCellState.cpp b/components/openmw-mp/Packets/Player/PacketPlayerCellState.cpp index 0546d86d7..c86d9121c 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerCellState.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerCellState.cpp @@ -28,8 +28,8 @@ void mwmp::PacketPlayerCellState::Packet(RakNet::BitStream *bs, bool send) cellState = player->cellStateChanges.cellStates.at(i); RW(cellState.type, send); - RW(cellState.cell.mData, send, 1); - RW(cellState.cell.mName, send, 1); + RW(cellState.cell.mData, send, true); + RW(cellState.cell.mName, send, true); if (!send) player->cellStateChanges.cellStates.push_back(cellState); diff --git a/components/openmw-mp/Packets/Player/PacketPlayerClass.cpp b/components/openmw-mp/Packets/Player/PacketPlayerClass.cpp index e6e89eeae..f7428d690 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerClass.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerClass.cpp @@ -18,8 +18,8 @@ void mwmp::PacketPlayerClass::Packet(RakNet::BitStream *bs, bool send) if (player->charClass.mId.empty()) // custom class { - RW(player->charClass.mName, send, 1); - RW(player->charClass.mDescription, send, 1); - RW(player->charClass.mData, send, 1); + RW(player->charClass.mName, send, true); + RW(player->charClass.mDescription, send, true); + RW(player->charClass.mData, send, true); } } diff --git a/components/openmw-mp/Packets/Player/PacketPlayerDeath.hpp b/components/openmw-mp/Packets/Player/PacketPlayerDeath.hpp index d558a5cfc..ba48a56ee 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerDeath.hpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerDeath.hpp @@ -22,7 +22,7 @@ namespace mwmp { PlayerPacket::Packet(bs, send); - RW(player->deathReason, send, 1); + RW(player->deathReason, send, true); } }; } diff --git a/components/openmw-mp/Packets/Player/PacketPlayerFaction.cpp b/components/openmw-mp/Packets/Player/PacketPlayerFaction.cpp index e81750b42..9e00013a7 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerFaction.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerFaction.cpp @@ -29,7 +29,7 @@ void PacketPlayerFaction::Packet(RakNet::BitStream *bs, bool send) if (send) faction = player->factionChanges.factions.at(i); - RW(faction.factionId, send, 1); + RW(faction.factionId, send, true); if (player->factionChanges.action == FactionChanges::RANK) RW(faction.rank, send); diff --git a/components/openmw-mp/Packets/Player/PacketPlayerInventory.cpp b/components/openmw-mp/Packets/Player/PacketPlayerInventory.cpp index 3cb960f33..698f8dfac 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerInventory.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerInventory.cpp @@ -33,7 +33,7 @@ void PacketPlayerInventory::Packet(RakNet::BitStream *bs, bool send) if (send) item = player->inventoryChanges.items.at(i); - RW(item.refId, send, 1); + RW(item.refId, send, true); RW(item.count, send); RW(item.charge, send); RW(item.enchantmentCharge, send); diff --git a/components/openmw-mp/Packets/Player/PacketPlayerJail.cpp b/components/openmw-mp/Packets/Player/PacketPlayerJail.cpp index a265314f2..3ed9cba8d 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerJail.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerJail.cpp @@ -16,6 +16,6 @@ void PacketPlayerJail::Packet(RakNet::BitStream *bs, bool send) RW(player->jailDays, send); RW(player->ignoreJailTeleportation, send); RW(player->ignoreJailSkillIncreases, send); - RW(player->jailProgressText, send, 1); - RW(player->jailEndText, send, 1); + RW(player->jailProgressText, send, true); + RW(player->jailEndText, send, true); } diff --git a/components/openmw-mp/Packets/Player/PacketPlayerJournal.cpp b/components/openmw-mp/Packets/Player/PacketPlayerJournal.cpp index 83f2c1af3..f7b3b0d6e 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerJournal.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerJournal.cpp @@ -28,12 +28,12 @@ void PacketPlayerJournal::Packet(RakNet::BitStream *bs, bool send) journalItem = player->journalChanges.journalItems.at(i); RW(journalItem.type, send); - RW(journalItem.quest, send, 1); + RW(journalItem.quest, send, true); RW(journalItem.index, send); if (journalItem.type == JournalItem::ENTRY) { - RW(journalItem.actorRefId, send, 1); + RW(journalItem.actorRefId, send, true); } if (!send) diff --git a/components/openmw-mp/Packets/Player/PacketPlayerKillCount.cpp b/components/openmw-mp/Packets/Player/PacketPlayerKillCount.cpp index df648dd35..26623c785 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerKillCount.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerKillCount.cpp @@ -24,7 +24,7 @@ void mwmp::PacketPlayerKillCount::Packet(RakNet::BitStream *bs, bool send) if (send) kill = player->killChanges.kills.at(i); - RW(kill.refId, send, 1); + RW(kill.refId, send, true); RW(kill.number, send); if (!send) diff --git a/components/openmw-mp/Packets/Player/PacketPlayerMiscellaneous.cpp b/components/openmw-mp/Packets/Player/PacketPlayerMiscellaneous.cpp index 8aca6b52f..a80f1de05 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerMiscellaneous.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerMiscellaneous.cpp @@ -16,13 +16,13 @@ void PacketPlayerMiscellaneous::Packet(RakNet::BitStream *bs, bool send) if (player->miscellaneousChangeType == mwmp::MISCELLANEOUS_CHANGE_TYPE::MARK_LOCATION) { - RW(player->markCell.mData, send, 1); - RW(player->markCell.mName, send, 1); + RW(player->markCell.mData, send, true); + RW(player->markCell.mName, send, true); RW(player->markPosition.pos, send); RW(player->markPosition.rot[0], send); RW(player->markPosition.rot[2], send); } else if (player->miscellaneousChangeType == mwmp::MISCELLANEOUS_CHANGE_TYPE::SELECTED_SPELL) - RW(player->selectedSpellId, send, 1); + RW(player->selectedSpellId, send, true); } diff --git a/components/openmw-mp/Packets/Player/PacketPlayerMomentum.cpp b/components/openmw-mp/Packets/Player/PacketPlayerMomentum.cpp index 00eb49e9d..5451aa96e 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerMomentum.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerMomentum.cpp @@ -13,5 +13,5 @@ void PacketPlayerMomentum::Packet(RakNet::BitStream *bs, bool send) { PlayerPacket::Packet(bs, send); - RW(player->momentum.pos, send, 1); + RW(player->momentum.pos, send, true); } diff --git a/components/openmw-mp/Packets/Player/PacketPlayerPosition.cpp b/components/openmw-mp/Packets/Player/PacketPlayerPosition.cpp index 379cc4ad9..9dc55b41a 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerPosition.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerPosition.cpp @@ -29,10 +29,10 @@ void PacketPlayerPosition::Packet(RakNet::BitStream *bs, bool send) dir = (player->direction.pos[0] >= 0 ? (unsigned char)(player->direction.pos[0]) : (unsigned char) 0x3) << 2; // pack direction dir += (player->direction.pos[1] >= 0 ? (unsigned char)(player->direction.pos[1]) : (unsigned char) 0x3); } - RW(rot[0], send, 1); - RW(rot[1], send, 1); + RW(rot[0], send, true); + RW(rot[1], send, true); - RW(player->position.pos, send, 1); + RW(player->position.pos, send, true); RW(dir, send); if (!send) diff --git a/components/openmw-mp/Packets/Player/PacketPlayerShapeshift.cpp b/components/openmw-mp/Packets/Player/PacketPlayerShapeshift.cpp index a1757d20e..26455a1e7 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerShapeshift.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerShapeshift.cpp @@ -16,5 +16,5 @@ void PacketPlayerShapeshift::Packet(RakNet::BitStream *bs, bool send) RW(player->isWerewolf, send); RW(player->displayCreatureName, send); - RW(player->creatureRefId, send, 1); + RW(player->creatureRefId, send, true); } diff --git a/components/openmw-mp/Packets/Player/PacketPlayerSpellbook.cpp b/components/openmw-mp/Packets/Player/PacketPlayerSpellbook.cpp index b9737390d..ffcf22d33 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerSpellbook.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerSpellbook.cpp @@ -29,21 +29,21 @@ void PacketPlayerSpellbook::Packet(RakNet::BitStream *bs, bool send) if (send) spell = player->spellbookChanges.spells.at(i); - RW(spell.mId, send, 1); + RW(spell.mId, send, true); if(spell.mId.find("$dynamic") != string::npos) { - RW(spell.mName, send, 1); + RW(spell.mName, send, true); - RW(spell.mData.mType, send, 1); - RW(spell.mData.mCost, send, 1); - RW(spell.mData.mFlags, send, 1); + RW(spell.mData.mType, send, true); + RW(spell.mData.mCost, send, true); + RW(spell.mData.mFlags, send, true); int effectCount = 0; if (send) effectCount = spell.mEffects.mList.size(); - RW(effectCount, send, 1); + RW(effectCount, send, true); for (unsigned int j = 0; j < effectCount; j++) { @@ -51,14 +51,14 @@ void PacketPlayerSpellbook::Packet(RakNet::BitStream *bs, bool send) if (send) effect = spell.mEffects.mList.at(j); - RW(effect.mEffectID, send, 1); - RW(effect.mSkill, send, 1); - RW(effect.mAttribute, send, 1); - RW(effect.mRange, send, 1); - RW(effect.mArea, send, 1); - RW(effect.mDuration, send, 1); - RW(effect.mMagnMin, send, 1); - RW(effect.mMagnMax, send, 1); + RW(effect.mEffectID, send, true); + RW(effect.mSkill, send, true); + RW(effect.mAttribute, send, true); + RW(effect.mRange, send, true); + RW(effect.mArea, send, true); + RW(effect.mDuration, send, true); + RW(effect.mMagnMin, send, true); + RW(effect.mMagnMax, send, true); if(!send) spell.mEffects.mList.push_back(effect); diff --git a/components/openmw-mp/Packets/Player/PacketPlayerTopic.cpp b/components/openmw-mp/Packets/Player/PacketPlayerTopic.cpp index 4fbdefc60..f53bf1847 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerTopic.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerTopic.cpp @@ -27,7 +27,7 @@ void PacketPlayerTopic::Packet(RakNet::BitStream *bs, bool send) if (send) topic = player->topicChanges.topics.at(i); - RW(topic.topicId, send, 1); + RW(topic.topicId, send, true); if (!send) player->topicChanges.topics.push_back(topic);