Skip to content

Commit

Permalink
[Core] fix subPlay task function closure error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-tz committed Apr 15, 2024
1 parent 06edee0 commit da7be9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ZBin/lua_scripts/SubPlay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ function gSubPlay.roleTask(name, role)
gSubPlay.register(name, role, subTask.args)
return subTask.task()
end
local _subRoleTask = _subPlayState[role]
if type(_subRoleTask) == "function" then
return _subRoleTask()
end
return _subPlayState[role]
end,
args = {
Expand Down

0 comments on commit da7be9a

Please sign in to comment.