Commit 17c9ca5b6f89bcfa71003445e5ada456b43c5d60
1 parent
27acaa11
fix: 讨伐电台判空
Showing
1 changed file
with
2 additions
and
1 deletions
 
Show diff stats
src/actions/RadioAction.lua
| ... | ... | @@ -123,7 +123,8 @@ function _M.startQuestRpc(agent, data) | 
| 123 | 123 | local getActIDs = function () | 
| 124 | 124 | local actids = {} | 
| 125 | 125 | for _, v in pairs(radioTask or {}) do | 
| 126 | - actids[v.actid] = (actids[v.actid] or 0) + 1 | |
| 126 | + local actid = v.actid or 0 | |
| 127 | + actids[actid] = (actids[actid] or 0) + 1 | |
| 127 | 128 | end | 
| 128 | 129 | return actids | 
| 129 | 130 | end | ... | ... |