mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Merge pull request #4305 from Laserlicht/fix_search
fix search in quick spell spellbook
This commit is contained in:
commit
34204d5898
@ -288,7 +288,7 @@ void CSpellWindow::processSpells()
|
||||
|
||||
if(onSpellSelect)
|
||||
{
|
||||
if(spell->isCombat() == openOnBattleSpells && !spell->isSpecial() && !spell->isCreatureAbility())
|
||||
if(spell->isCombat() == openOnBattleSpells && !spell->isSpecial() && !spell->isCreatureAbility() && searchTextFound)
|
||||
mySpells.push_back(spell.get());
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user