Laserlicht 1 rok temu
rodzic
commit
6f604444c6
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      client/battle/BattleInterfaceClasses.cpp

+ 1 - 1
client/battle/BattleInterfaceClasses.cpp

@@ -462,7 +462,7 @@ std::vector<std::tuple<SpellID, bool>> QuickSpellPanel::getSpells()
 
 		for(const auto & availableSpellID : CGI->spellh->getDefaultAllowed())
 		{
-			const auto * availableSpell = availableSpellID->toSpell();
+			const auto * availableSpell = availableSpellID.toSpell();
 			if(!availableSpell->isAdventure() && !availableSpell->isCreatureAbility() && hero->canCastThisSpell(availableSpell.get()) && !vstd::contains(spellIds, availableSpell->getId()))
 			{
 				spellIds[i] = availableSpell->getId();