浏览代码

Merge pull request #4305 from Laserlicht/fix_search

fix search in quick spell spellbook
Ivan Savenko 1 年之前
父节点
当前提交
34204d5898
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/windows/CSpellWindow.cpp

+ 1 - 1
client/windows/CSpellWindow.cpp

@@ -288,7 +288,7 @@ void CSpellWindow::processSpells()
 
 
 		if(onSpellSelect)
 		if(onSpellSelect)
 		{
 		{
-			if(spell->isCombat() == openOnBattleSpells && !spell->isSpecial() && !spell->isCreatureAbility())
+			if(spell->isCombat() == openOnBattleSpells && !spell->isSpecial() && !spell->isCreatureAbility() && searchTextFound)
 				mySpells.push_back(spell.get());
 				mySpells.push_back(spell.get());
 			continue;
 			continue;
 		}
 		}