From d0c0b398bc8284e899be18f74afdca1689404f51 Mon Sep 17 00:00:00 2001 From: chenxi Date: Wed, 26 Apr 2023 19:22:10 +0800 Subject: [PATCH] fix bug --- lua/app/module/battle/controller/battle_controller_stage.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/app/module/battle/controller/battle_controller_stage.lua b/lua/app/module/battle/controller/battle_controller_stage.lua index 14ad1141..6a099be6 100644 --- a/lua/app/module/battle/controller/battle_controller_stage.lua +++ b/lua/app/module/battle/controller/battle_controller_stage.lua @@ -167,7 +167,7 @@ function BattleControllerStage:controllBattleEnd() local atkReport = {} local teamEntity = DataManager.BattleData:getAtkTeam() local members = teamEntity:getAllMembers() - for k, v in ipairs(members) do + for k, v in pairs(members) do local report = { heroId = v:getId(), dmg = v:getDamageCount(),