diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index d4f9ffcd1..f71c43e50 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -648,8 +648,9 @@ void LocalPlayer::addSpells() MWMechanics::Spells &ptrSpells = ptrPlayer.getClass().getCreatureStats(ptrPlayer).getSpells(); for (const auto &spell : spellbookChanges.spells) - ptrSpells.add(spell.mId); - + // Only add spells that are ensured to exist + if (MWBase::Environment::get().getWorld()->getStore().get().search(spell.mId)) + ptrSpells.add(spell.mId); } void LocalPlayer::addJournalItems()