fix: clang warnings (#1854)

This commit is contained in:
David Markowitz
2025-08-01 13:28:09 -07:00
committed by GitHub
parent c083f21e44
commit 3890c0a86c

View File

@@ -89,14 +89,14 @@ void WorldPackets::SendCreateCharacter(const SystemAddress& sysAddr, int64_t rep
RakNet::BitStream data;
std::vector<std::unique_ptr<LDFBaseData>> ldfData;
ldfData.push_back(move(make_unique<LDFData<LWOOBJID>>(u"objid", player)));
ldfData.push_back(move(make_unique<LDFData<LOT>>(u"template", 1)));
ldfData.push_back(move(make_unique<LDFData<string>>(u"xmlData", xmlData)));
ldfData.push_back(move(make_unique<LDFData<u16string>>(u"name", username)));
ldfData.push_back(move(make_unique<LDFData<int32_t>>(u"gmlevel", static_cast<int32_t>(gm))));
ldfData.push_back(move(make_unique<LDFData<int32_t>>(u"chatmode", static_cast<int32_t>(gm))));
ldfData.push_back(move(make_unique<LDFData<int64_t>>(u"reputation", reputation)));
ldfData.push_back(move(make_unique<LDFData<int32_t>>(u"propertycloneid", cloneID)));
ldfData.push_back(std::move(make_unique<LDFData<LWOOBJID>>(u"objid", player)));
ldfData.push_back(std::move(make_unique<LDFData<LOT>>(u"template", 1)));
ldfData.push_back(std::move(make_unique<LDFData<string>>(u"xmlData", xmlData)));
ldfData.push_back(std::move(make_unique<LDFData<u16string>>(u"name", username)));
ldfData.push_back(std::move(make_unique<LDFData<int32_t>>(u"gmlevel", static_cast<int32_t>(gm))));
ldfData.push_back(std::move(make_unique<LDFData<int32_t>>(u"chatmode", static_cast<int32_t>(gm))));
ldfData.push_back(std::move(make_unique<LDFData<int64_t>>(u"reputation", reputation)));
ldfData.push_back(std::move(make_unique<LDFData<int32_t>>(u"propertycloneid", cloneID)));
data.Write<uint32_t>(ldfData.size());
for (const auto& toSerialize : ldfData) toSerialize->WriteToPacket(data);