mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 22:36:39 +00:00
Don't assert that spells have a school
This commit is contained in:
parent
abbb620ea2
commit
a0694d4134
1 changed files with 2 additions and 1 deletions
|
@ -74,7 +74,8 @@ namespace MWMechanics
|
||||||
ESM::RefId school;
|
ESM::RefId school;
|
||||||
float skillTerm;
|
float skillTerm;
|
||||||
calcWeakestSchool(&spell, actorSkills, school, skillTerm);
|
calcWeakestSchool(&spell, actorSkills, school, skillTerm);
|
||||||
assert(!school.empty());
|
if (school.empty())
|
||||||
|
continue;
|
||||||
SchoolCaps& cap = schoolCaps[school];
|
SchoolCaps& cap = schoolCaps[school];
|
||||||
|
|
||||||
if (cap.mReachedLimit && spellCost <= cap.mMinCost)
|
if (cap.mReachedLimit && spellCost <= cap.mMinCost)
|
||||||
|
|
Loading…
Reference in a new issue