Update to latest Arbutils
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
de26a41fcf
commit
9af68fa773
|
@ -51,8 +51,8 @@ PkmnLib::Battling::Battle* PkmnLib::Battling::Battle::Clone() const {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
auto partyIndex = party->GetParty()->GetParty().IndexOf(creature.GetValue());
|
auto partyIndex = party->GetParty()->GetParty().IndexOf(creature.GetValue());
|
||||||
if (partyIndex != -1U) {
|
if (partyIndex.has_value()) {
|
||||||
auto c = battle->_parties.At(j)->GetParty()->GetParty()[partyIndex];
|
auto c = battle->_parties.At(j)->GetParty()->GetParty()[partyIndex.value()];
|
||||||
battle->_sides.At(i)->SetCreature(c, creatureIndex);
|
battle->_sides.At(i)->SetCreature(c, creatureIndex);
|
||||||
j = _parties.Count();
|
j = _parties.Count();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue