Commit 42af513a55d5de62a2eac275b2873515f695b862
1 parent
14c64276
保护
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/actions/DinerAction.lua
... | ... | @@ -40,7 +40,7 @@ function _M.addSellRpc( agent, data ) |
40 | 40 | deltaTime = 0, |
41 | 41 | lastCount = 0, |
42 | 42 | } |
43 | - local count = sellData.count | |
43 | + local count = sellData.count or 0 | |
44 | 44 | local maxDishCount = role.dinerData:getMaxDishs() |
45 | 45 | if math.illegalNum(count + calSell.lastCount, 1, maxDishCount) then |
46 | 46 | return 5 | ... | ... |