mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 07:53:51 +00:00
[Server] Rename variables in ProcessorPlayerAttack
This commit is contained in:
parent
caf5428532
commit
340ad09c97
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ namespace mwmp
|
||||||
|
|
||||||
if (!player.creatureStats.mDead)
|
if (!player.creatureStats.mDead)
|
||||||
{
|
{
|
||||||
Player *target = Players::getPlayer(player.attack.target);
|
Player *target = Players::getPlayer(player.attack.targetGuid);
|
||||||
|
|
||||||
if (target == nullptr)
|
if (target == nullptr)
|
||||||
target = &player;
|
target = &player;
|
||||||
|
@ -46,7 +46,7 @@ namespace mwmp
|
||||||
|
|
||||||
//packet.Send(player, true);
|
//packet.Send(player, true);
|
||||||
player.sendToLoaded(&packet);
|
player.sendToLoaded(&packet);
|
||||||
playerController->GetPacket(ID_PLAYER_STATS_DYNAMIC)->RequestData(player.attack.target);
|
playerController->GetPacket(ID_PLAYER_STATS_DYNAMIC)->RequestData(player.attack.targetGuid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue