瀏覽代碼

fix search in quick spell spellbook

Laserlicht 1 年之前
父節點
當前提交
598f1b0738
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/windows/CSpellWindow.cpp

+ 1 - 1
client/windows/CSpellWindow.cpp

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