Skip to content

Commit

Permalink
[Core] fix bug of subplay getRoleNum error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-tz committed Apr 15, 2024
1 parent 122745a commit 06edee0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ZBin/lua_scripts/SubPlay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ function gSubPlay.getRoleAndNum(roleName)
else
if gSubPlay.playTable[scope] == nil then
warning("subPlay not exist - " .. scope .. " " .. role .. pathOutput(findPath))
return -1
return "",-1
end
if gSubPlay.playTable[scope].roleMapping[role] == nil then
warning("role not exist - " .. scope .. " " .. role .. pathOutput(findPath))
return -1
return "",-1
end
local tRoleMap = gSubPlay.playTable[scope].roleMapping[role]
scope, role = tRoleMap[1], tRoleMap[2]
Expand All @@ -144,7 +144,7 @@ function gSubPlay.getRoleAndNum(roleName)
iterCount = iterCount + 1
if iterCount > 10 then
warning("getRoleNum failed - " .. pathOutput(findPath))
return -1
return "",-1
end
end
end

0 comments on commit 06edee0

Please sign in to comment.