1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-10 12:39:53 +00:00

Merge branch 'lessassertiveschooling' into 'master'

Don't assert that spells have a school

See merge request OpenMW/openmw!3651
This commit is contained in:
Alexei Kotov 2023-12-13 17:14:29 +00:00
commit 4dfd2b0f46

View File

@ -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)