mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-10-20 04:10:50 +00:00
Get rid of PlayerView. For good.
This commit is contained in:
@@ -488,8 +488,8 @@ bool doHeal(CNSocket *sock, int32_t *pktdata, sSkillResult_Heal_HP *respdata, in
|
||||
Player *plr = nullptr;
|
||||
|
||||
for (auto& pair : PlayerManager::players) {
|
||||
if (pair.second.plr->iID == pktdata[i]) {
|
||||
plr = pair.second.plr;
|
||||
if (pair.second->iID == pktdata[i]) {
|
||||
plr = pair.second;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -519,8 +519,8 @@ bool doGroupHeal(CNSocket *sock, int32_t *pktdata, sSkillResult_Heal_HP *respdat
|
||||
Player *plr = nullptr;
|
||||
|
||||
for (auto& pair : PlayerManager::players) {
|
||||
if (pair.second.plr->iID == pktdata[0]) {
|
||||
plr = pair.second.plr;
|
||||
if (pair.second->iID == pktdata[0]) {
|
||||
plr = pair.second;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user