1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-28 09:06:40 +00:00

Don't assert that spells have a school

This commit is contained in:
Evil Eye 2023-12-12 22:11:32 +01:00
parent abbb620ea2
commit a0694d4134

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)