mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 12:10:44 +02:00
Merge pull request #9064 from birarda/mod-overlay-cleanup
fix kick and mute overlay cleanup
This commit is contained in:
commit
3d5a178a1d
1 changed files with 8 additions and 8 deletions
|
@ -166,9 +166,9 @@ AvatarList.avatarRemovedEvent.connect(function(avatarID){
|
|||
if (isShowingOverlays) {
|
||||
// we are currently showing overlays and an avatar just went away
|
||||
|
||||
// first remove the rendered overlay
|
||||
for (var overlay in modOverlays[avatarID]) {
|
||||
Overlays.deleteOverlay(overlay);
|
||||
// first remove the rendered overlays
|
||||
for (var j = 0; j < modOverlays[avatarID].length; ++j) {
|
||||
Overlays.deleteOverlay(modOverlays[avatarID][j]);
|
||||
}
|
||||
|
||||
// delete the saved ID of the overlay from our mod overlays object
|
||||
|
|
Loading…
Reference in a new issue