Use algorithm for IsResponsibleForIndex check.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -24,13 +24,7 @@ namespace CreatureLib::Battling {
|
||||
return _responsibleIndices.Contains(index);
|
||||
}
|
||||
|
||||
inline bool IsResponsibleForIndex(uint8_t side, uint8_t index) const {
|
||||
for (const auto& i : _responsibleIndices) {
|
||||
if (i.GetSideIndex() == side && i.GetCreatureIndex() == index)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool IsResponsibleForIndex(uint8_t side, uint8_t index) const;
|
||||
|
||||
inline bool HasCreaturesNotInField() const {
|
||||
auto& p = _party->GetParty();
|
||||
|
||||
Reference in New Issue
Block a user