From 31a9b77f344cc7874f93d2099d4d3556b1cfea7b Mon Sep 17 00:00:00 2001 From: David Cernat Date: Mon, 10 Sep 2018 12:34:33 +0300 Subject: [PATCH] [Client] Reset hitPosition in MechanicsHelper::resetAttack() --- apps/openmw/mwmp/MechanicsHelper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/openmw/mwmp/MechanicsHelper.cpp b/apps/openmw/mwmp/MechanicsHelper.cpp index 3c58b5bbb..fd2b309f6 100644 --- a/apps/openmw/mwmp/MechanicsHelper.cpp +++ b/apps/openmw/mwmp/MechanicsHelper.cpp @@ -188,6 +188,7 @@ void MechanicsHelper::resetAttack(Attack* attack) attack->block = false; attack->applyWeaponEnchantment = false; attack->applyProjectileEnchantment = false; + attack->hitPosition.pos[0] = attack->hitPosition.pos[1] = attack->hitPosition.pos[2] = 0; attack->target.guid = RakNet::RakNetGUID(); attack->target.refId.clear(); attack->target.refNum = 0;