diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index 35afa44..35b5ca1 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -1409,7 +1409,7 @@ function _M.goldBuyRpc(agent, data) local maxCount = maxIdx + role:getBnousUpSpeedNum(UpSpeedType.GearUpSpeed) if curT > maxCount then return end if curT > maxIdx then - for idx = maxIdx+1, curCount do + for idx = maxIdx+1, curT do costs[idx] = costs[maxIdx] end end -- libgit2 0.21.2