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;
|
||||
}
|
||||
auto partyIndex = party->GetParty()->GetParty().IndexOf(creature.GetValue());
|
||||
if (partyIndex != -1U) {
|
||||
auto c = battle->_parties.At(j)->GetParty()->GetParty()[partyIndex];
|
||||
if (partyIndex.has_value()) {
|
||||
auto c = battle->_parties.At(j)->GetParty()->GetParty()[partyIndex.value()];
|
||||
battle->_sides.At(i)->SetCreature(c, creatureIndex);
|
||||
j = _parties.Count();
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue