Skip to content

Commit

Permalink
Merge branch 'lessassertiveschooling' into 'master'
Browse files Browse the repository at this point in the history
Don't assert that spells have a school

See merge request OpenMW/openmw!3651
  • Loading branch information
Capostrophic committed Dec 13, 2023
2 parents 7e3270a + a0694d4 commit 4dfd2b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/openmw/mwmechanics/autocalcspell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ namespace MWMechanics
ESM::RefId school;
float skillTerm;
calcWeakestSchool(&spell, actorSkills, school, skillTerm);
assert(!school.empty());
if (school.empty())
continue;
SchoolCaps& cap = schoolCaps[school];

if (cap.mReachedLimit && spellCost <= cap.mMinCost)
Expand Down

0 comments on commit 4dfd2b0

Please sign in to comment.