Commit a653a5c9dc8f41328b1c68b43322a45bab54cb28
Merge branch 'cn/develop' into cn/publish/release
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 | ... | ... |