Compare View
Commits (2)
Showing
1 changed file
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 | ... | ... |