1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

Fix build

This commit is contained in:
AlexVinS 2016-10-02 17:25:55 +03:00
parent 723734fd04
commit 85863dbed6
2 changed files with 2 additions and 3 deletions

View File

@ -69,7 +69,6 @@
<Add option="-Wno-sign-compare" />
<Add option="-Wno-unused-parameter" />
<Add option="-Wno-overloaded-virtual" />
<Add option="-fpermissive" />
<Add option="-isystem $(#boost.include)" />
<Add option="-DBOOST_THREAD_USE_LIB" />
<Add option="-DBOOST_SYSTEM_NO_DEPRECATED" />

View File

@ -401,10 +401,10 @@ void CSpellWindow::computeSpellsPerArea()
std::vector<SpellID> spellsCurSite;
for(const SpellID & spellID : mySpells)
{
CSpell * s = spellID.toSpell();
const CSpell * s = spellID.toSpell();
if(s->combatSpell ^ !battleSpellsOnly
&& ((selectedTab == 4) || (s->school[(ESpellSchool)selectedTab]))
&& ((selectedTab == 4) || s->school.at((ESpellSchool)selectedTab))
)
{
spellsCurSite.push_back(spellID);