From da16c211a4db3241fff64ef32da98172cff25244 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sun, 6 Jun 2021 20:18:44 +0200 Subject: [PATCH] [Client] Make potion effects work with SpellsActive packets, part 2 --- apps/openmw/mwmp/DedicatedPlayer.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/openmw/mwmp/DedicatedPlayer.cpp b/apps/openmw/mwmp/DedicatedPlayer.cpp index 27842092e..452e284fd 100644 --- a/apps/openmw/mwmp/DedicatedPlayer.cpp +++ b/apps/openmw/mwmp/DedicatedPlayer.cpp @@ -490,13 +490,8 @@ void DedicatedPlayer::addSpellsActive() for (const auto& activeSpell : spellsActiveChanges.activeSpells) { - // Only add spells that are ensured to exist - if (MWBase::Environment::get().getWorld()->getStore().get().search(activeSpell.id)) - { - activeSpells.addSpell(activeSpell.id, false, activeSpell.params.mEffects, activeSpell.params.mDisplayName, 1); - } - else - LOG_APPEND(TimedLog::LOG_INFO, "- Ignored addition of invalid spell %s", activeSpell.id.c_str()); + // Don't do a check for a spell's existence, because active effects from potions need to be applied here too + activeSpells.addSpell(activeSpell.id, activeSpell.shouldStack, activeSpell.params.mEffects, activeSpell.params.mDisplayName, 1); } }