diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index d4a7d1c..49e6f92 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -534,6 +534,10 @@ function _M.searchAllRoleRpc(agent, data) if ret ~= 0 then return 2 end local rsp = result.data + if not rsp or not next(rsp) then + return 3 + end + SendPacket(actionCodes.Role_searchAllRoleRpc, MsgPack.pack(rsp)) return true end -- libgit2 0.21.2