diff --git a/src/Battling/Battle/Battle.cpp b/src/Battling/Battle/Battle.cpp index 42fb2c5..a38961e 100644 --- a/src/Battling/Battle/Battle.cpp +++ b/src/Battling/Battle/Battle.cpp @@ -30,7 +30,7 @@ PkmnLib::Battling::Battle* PkmnLib::Battling::Battle::Clone() const { new Battle(_library.ForceAs(), parties, _canFlee, _numberOfSides, _creaturesPerSide); for (int i = 0; i < _numberOfSides; ++i) { - battle->_sides.Set(i, _sides[i]->CloneWithoutCreatures()); + battle->_sides.Set(i, _sides[i]->CloneWithoutCreatures(battle)); // FIXME: This is horrible code to translate the creature from the old battle into the same creature in the // new battle. This needs to be cleaned up, as it's ugly and slow. for (int creatureIndex = 0; creatureIndex < _creaturesPerSide; ++creatureIndex) {