From 42af513a55d5de62a2eac275b2873515f695b862 Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Mon, 20 Apr 2020 15:31:42 +0800 Subject: [PATCH] 保护 --- src/actions/DinerAction.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/DinerAction.lua b/src/actions/DinerAction.lua index f95418b..dd55b7a 100644 --- a/src/actions/DinerAction.lua +++ b/src/actions/DinerAction.lua @@ -40,7 +40,7 @@ function _M.addSellRpc( agent, data ) deltaTime = 0, lastCount = 0, } - local count = sellData.count + local count = sellData.count or 0 local maxDishCount = role.dinerData:getMaxDishs() if math.illegalNum(count + calSell.lastCount, 1, maxDishCount) then return 5 -- libgit2 0.21.2