Commit f60fc76419ddfa248063e3a72da0f447abcb30f7

Authored by zhouhaihai
1 parent 6f3959ce

bug

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/adv/AdvMap.lua
... ... @@ -372,8 +372,8 @@ createMap = function(self, mapId, isEnter, isNewRelay)
372 372 if relayData then
373 373 local choose = relayData.choose:toArray(true, "=")
374 374 local lastCount = stagePool["global"][AdvCodeRandomStage] and #stagePool["global"][AdvCodeRandomStage] or 0
375   - if lastCount <= 0 then break end
376 375 for _, chooseId in pairs(choose) do
  376 + if lastCount <= 0 then break end
377 377 local idx = math.randomInt(1, lastCount)
378 378 local cur = stagePool["global"][AdvCodeRandomStage][idx]
379 379  
... ...