From 6766206a76083466a78dcb70fe7a9f45fc96f557 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Fri, 16 Apr 2021 22:05:54 +0200 Subject: [PATCH] [Client] Add check for local player when sending active spell removal --- apps/openmw/mwmechanics/activespells.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/activespells.cpp b/apps/openmw/mwmechanics/activespells.cpp index 114bd88f4..bc001a42b 100644 --- a/apps/openmw/mwmechanics/activespells.cpp +++ b/apps/openmw/mwmechanics/activespells.cpp @@ -43,7 +43,10 @@ namespace MWMechanics Whenever a player loses an active spell, send an ID_PLAYER_SPELLS_ACTIVE packet to the server with it */ - mwmp::Main::get().getLocalPlayer()->sendSpellsActiveRemoval(iter->first); + if (this == &MWMechanics::getPlayer().getClass().getCreatureStats(MWMechanics::getPlayer()).getActiveSpells()) + { + mwmp::Main::get().getLocalPlayer()->sendSpellsActiveRemoval(iter->first); + } /* End of tes3mp addition */