Commit c7354072 authored by Renato Alves's avatar Renato Alves 🌱
Browse files

BUG Fix client freeze issue due to undefined entities

When passed along the client would raise an exception and freeze.
parent 817d78b1
......@@ -1629,7 +1629,9 @@ function(InfoManager, BubbleManager, Renderer, Map, Animation, Sprite, AnimatedT
*/
forEachEntity: function(callback) {
_.each(this.entities, function(entity) {
callback(entity);
if (typeof entity !== 'undefined') {
callback(entity);
}
});
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment