From 340ad09c9719b4c733bb0c6e3b0500308a4ca09f Mon Sep 17 00:00:00 2001 From: David Cernat Date: Mon, 17 Apr 2017 17:43:03 +0300 Subject: [PATCH] [Server] Rename variables in ProcessorPlayerAttack --- apps/openmw-mp/processors/player/ProcessorPlayerAttack.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw-mp/processors/player/ProcessorPlayerAttack.hpp b/apps/openmw-mp/processors/player/ProcessorPlayerAttack.hpp index 430f2f0fe..e6535b88b 100644 --- a/apps/openmw-mp/processors/player/ProcessorPlayerAttack.hpp +++ b/apps/openmw-mp/processors/player/ProcessorPlayerAttack.hpp @@ -26,7 +26,7 @@ namespace mwmp if (!player.creatureStats.mDead) { - Player *target = Players::getPlayer(player.attack.target); + Player *target = Players::getPlayer(player.attack.targetGuid); if (target == nullptr) target = &player; @@ -46,7 +46,7 @@ namespace mwmp //packet.Send(player, true); player.sendToLoaded(&packet); - playerController->GetPacket(ID_PLAYER_STATS_DYNAMIC)->RequestData(player.attack.target); + playerController->GetPacket(ID_PLAYER_STATS_DYNAMIC)->RequestData(player.attack.targetGuid); } } };