mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
few more refactorings
This commit is contained in:
@@ -527,9 +527,9 @@ void CSpellHandler::loadSpells()
|
||||
boost::replace_first(spells[Spells::FORGETFULNESS]->attributes, "CREATURE_TARGET", "CREATURE_TARGET_2"); //TODO: use flags instead?
|
||||
}
|
||||
|
||||
std::vector<ui8> CSpellHandler::getDefaultAllowedSpells() const
|
||||
std::vector<bool> CSpellHandler::getDefaultAllowedSpells() const
|
||||
{
|
||||
std::vector<ui8> allowedSpells;
|
||||
allowedSpells.resize(GameConstants::SPELLS_QUANTITY, 1);
|
||||
std::vector<bool> allowedSpells;
|
||||
allowedSpells.resize(GameConstants::SPELLS_QUANTITY, true);
|
||||
return allowedSpells;
|
||||
}
|
||||
|
Reference in New Issue
Block a user