gitxsm 3 tygodni temu
rodzic
commit
976bb86d4f

+ 4 - 0
script/module/anotherWorldBattle/AnotherWorldBattleCS.lua

@@ -346,6 +346,10 @@ function IssueRewardManager()
     local unionList = AnotherWorldBattleDB.GetUnionList()
     local playerListData = AnotherWorldBattleDB.GetPlayerList()
 
+    if not unionList or not next(unionList) or not playerListData or not next(playerListData) then
+        return
+    end
+
     for unionId, union in pairs(unionList) do
         local occupyInfo = genUnionOccupyInfo(unionId, union, playerListData)
         delay_sec = delay_sec + 5