1
0
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:
Ivan Savenko 2024-07-20 12:50:43 +03:00 committed by GitHub
commit 34204d5898
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}