1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

fix search in quick spell spellbook

This commit is contained in:
Laserlicht
2024-07-19 19:49:21 +02:00
parent 31caf73383
commit 598f1b0738

View File

@@ -298,7 +298,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;
}