From 7ed118e5def39d1da12bd14aae69d365dfef2ba6 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 26 Jul 2020 15:29:16 +0200 Subject: [PATCH] Fixed issue in BattleParty C Interface. --- CInterface/Battling/BattleParty.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CInterface/Battling/BattleParty.cpp b/CInterface/Battling/BattleParty.cpp index dd40f29..104d590 100644 --- a/CInterface/Battling/BattleParty.cpp +++ b/CInterface/Battling/BattleParty.cpp @@ -7,7 +7,7 @@ using namespace CreatureLib::Battling; export uint8_t CreatureLib_BattleParty_Construct(BattleParty*& out, CreatureParty* p, uint8_t creatureIndices[], size_t numberOfIndices) { Try(ArbUt::List indices(numberOfIndices); for (size_t i = 0; i < numberOfIndices; i++) { - indices[i] = CreatureIndex(creatureIndices[i * 2], creatureIndices[i * 2 + 1]); + indices.Append(CreatureIndex(creatureIndices[i * 2], creatureIndices[i * 2 + 1])); } out = new BattleParty(p, indices);) }