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

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