From 06edee05d5aefd4ebd04c737f6fca2f5ed8df1f3 Mon Sep 17 00:00:00 2001 From: mark Date: Mon, 15 Apr 2024 18:14:17 +0800 Subject: [PATCH] [Core] fix bug of subplay getRoleNum error --- ZBin/lua_scripts/SubPlay.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ZBin/lua_scripts/SubPlay.lua b/ZBin/lua_scripts/SubPlay.lua index 4398b40..1ff8763 100644 --- a/ZBin/lua_scripts/SubPlay.lua +++ b/ZBin/lua_scripts/SubPlay.lua @@ -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] @@ -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 \ No newline at end of file