Ver código fonte

Small cleanup

AlexVinS 11 anos atrás
pai
commit
226b737b6b
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      lib/CSpellHandler.cpp

+ 1 - 1
lib/CSpellHandler.cpp

@@ -119,7 +119,7 @@ bool CSpell::isCastableBy(const IBonusBearer * caster, bool hasSpellBook, const
 	
 	forEachSchool([&](const SpellSchoolInfo & cnf, bool & stop)
 	{
-		if(school.at(cnf.id) && caster->hasBonusOfType(cnf.knoledgeBonus))
+		if(caster->hasBonusOfType(cnf.knoledgeBonus))
 		{
 			inTome = stop = true;
 		}