mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2026-02-22 19:10:03 +00:00
Get rid of PlayerView. For good.
This commit is contained in:
@@ -136,7 +136,7 @@ void BuddyManager::reqBuddyByName(CNSocket* sock, CNPacketData* data) {
|
||||
CNSocket* otherSock = nullptr;
|
||||
|
||||
for (auto& pair : PlayerManager::players) {
|
||||
Player* plr = pair.second.plr;
|
||||
Player* plr = pair.second;
|
||||
if (strcmp(U16toU8(plr->PCStyle.szFirstName).c_str(), U16toU8(pkt->szFirstName).c_str()) == 0
|
||||
&& strcmp(U16toU8(plr->PCStyle.szLastName).c_str(), U16toU8(pkt->szLastName).c_str()) == 0
|
||||
&& !playerHasBuddyWithID(plrReq, plr->iID)) {
|
||||
|
||||
Reference in New Issue
Block a user