Don't process entity if none returned

This commit is contained in:
nhamer
2017-01-18 19:40:56 -08:00
parent 73212bd63a
commit f6b26b965b

View File

@ -73,7 +73,9 @@ window.MapDataRequest = function() {
// add a portalDetailLoaded hook, so we can use the exteneed details to update portals on the map // add a portalDetailLoaded hook, so we can use the exteneed details to update portals on the map
var _this = this; var _this = this;
addHook('portalDetailLoaded', function(data){ addHook('portalDetailLoaded', function(data){
if(data.success) {
_this.render.processGameEntities([data.ent]); _this.render.processGameEntities([data.ent]);
}
}); });
} }