From 571f3e8ee71c0cd23a9e062839f90c17f51adfc5 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sat, 12 Feb 2022 18:43:18 +0200 Subject: [PATCH] [Client] Use correct stacking value when sending SpellsActive packets --- apps/openmw/mwmechanics/activespells.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/openmw/mwmechanics/activespells.cpp b/apps/openmw/mwmechanics/activespells.cpp index 285cdcb62..ddb6a3353 100644 --- a/apps/openmw/mwmechanics/activespells.cpp +++ b/apps/openmw/mwmechanics/activespells.cpp @@ -232,18 +232,16 @@ namespace MWMechanics */ if (sendPacket) { - bool isStackingSpell = it == end() || stack; - if (this == &MWMechanics::getPlayer().getClass().getCreatureStats(MWMechanics::getPlayer()).getActiveSpells()) { - mwmp::Main::get().getLocalPlayer()->sendSpellsActiveAddition(id, isStackingSpell, params); + mwmp::Main::get().getLocalPlayer()->sendSpellsActiveAddition(id, stack, params); } else { MWWorld::Ptr actorPtr = MWBase::Environment::get().getWorld()->searchPtrViaActorId(getActorId()); if (mwmp::Main::get().getCellController()->isLocalActor(actorPtr)) - mwmp::Main::get().getCellController()->getLocalActor(actorPtr)->sendSpellsActiveAddition(id, isStackingSpell, params); + mwmp::Main::get().getCellController()->getLocalActor(actorPtr)->sendSpellsActiveAddition(id, stack, params); } } /*