Commit 652ef8f701fb06810cb0cfa8107b2b070d846f42
1 parent
f2f84157
fix: 一番赏 修复广播capsuleId 为空的问题
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/services/capsuled.lua
... | ... | @@ -195,10 +195,10 @@ function CMD.exit(roleId, capsuleId) |
195 | 195 | capsule:exit(roleId) |
196 | 196 | broadCastCapsule(roleId, capsuleId, {notifyType = NotifyChangeType.EXIT, roleId = roleId}) |
197 | 197 | else |
198 | - for _, capsule in pairs(capsules) do | |
198 | + for id, capsule in pairs(capsules) do | |
199 | 199 | if next(capsule) then |
200 | 200 | capsule:exit(roleId) |
201 | - broadCastCapsule(roleId, capsuleId, {notifyType = NotifyChangeType.EXIT, roleId = roleId}) | |
201 | + broadCastCapsule(roleId, id, {notifyType = NotifyChangeType.EXIT, roleId = roleId}) | |
202 | 202 | end |
203 | 203 | end |
204 | 204 | end | ... | ... |