Fix incorrect test for Mode AC planeObject

This commit is contained in:
Carlos Salaverria 2016-09-06 17:13:21 -05:00
parent 4ddb129b5e
commit 15c66a379a

View file

@ -216,7 +216,7 @@ PlaneObject.prototype.getDataSource = function() {
var emptyHexRegex = /^0*$/; var emptyHexRegex = /^0*$/;
// No position and no ICAO hex code - Mode A/C // No position and no ICAO hex code - Mode A/C
if (this.hex === null || emptyHexRegex.test(this.hex)) { if (emptyHexRegex.test(this.icao)) {
return 'mode_ac'; return 'mode_ac';
} }