Commit 3a262daf4e40f97d1d6cc068ff166642cc7e4391

Authored by zhangqijia
1 parent 95776b49

fix: 世界积分 未判空的bug

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/actions/RoleAction.lua
... ... @@ -1791,7 +1791,7 @@ function _M.worldLineRouletteRpc(agent, data)
1791 1791  
1792 1792 local points = math.floor((gift_base_10 + gift_base_1) * (gift_magnification_1 + gift_magnification_0))
1793 1793 worldChangePoints[ItemWorldLine.RouletteCount] = worldChangePoints[ItemWorldLine.RouletteCount] - 1
1794   - worldChangePoints[ItemWorldLine.Points] = worldChangePoints[ItemWorldLine.Points] + points
  1794 + worldChangePoints[ItemWorldLine.Points] = (worldChangePoints[ItemWorldLine.Points] or 0) + points
1795 1795 role:updateProperty({field = "worldChangePoints", value = worldChangePoints})
1796 1796  
1797 1797 SendPacket(actionCodes.Role_worldLineRouletteRpc, MsgPack.pack({base_10 = gift_base_10, base_1 = gift_base_1, magnification_1 = gift_magnification_1, magnification_0 = gift_magnification_0}))
... ...