portal weakness: test for the correct value existing - oops

fix #1010
This commit is contained in:
Jon Atkins 2015-07-07 21:47:43 +01:00
parent aa0393c518
commit b3385c7f2c

View File

@ -27,7 +27,7 @@ window.plugin.portalWeakness = function() {};
window.plugin.portalWeakness.highlightWeakness = function(data) { window.plugin.portalWeakness.highlightWeakness = function(data) {
if(data.portal.options.resCount !== undefined && data.portal.options.data.health !== undefined && data.portal.options.team != TEAM_NONE) { if(data.portal.options.data.resCount !== undefined && data.portal.options.data.health !== undefined && data.portal.options.team != TEAM_NONE) {
var res_count = data.portal.options.data.resCount; var res_count = data.portal.options.data.resCount;
var portal_health = data.portal.options.data.health; var portal_health = data.portal.options.data.health;