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,7 +123,8 @@ function _M.startQuestRpc(agent, data) | ||
| 123 | local getActIDs = function () | 123 | local getActIDs = function () |
| 124 | local actids = {} | 124 | local actids = {} |
| 125 | for _, v in pairs(radioTask or {}) do | 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 | end | 128 | end |
| 128 | return actids | 129 | return actids |
| 129 | end | 130 | end |