From f70c7fdc71bbdeecf9ca7a776b32f386d27daa5c Mon Sep 17 00:00:00 2001 From: Andre Klang Date: Fri, 22 Dec 2023 22:27:10 +0100 Subject: [PATCH] Fixed bug where region in facility list was lost (cut of by null terminator) --- src/datastructures/FacilityAirport.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/datastructures/FacilityAirport.ts b/src/datastructures/FacilityAirport.ts index 958ed20..886c9e5 100644 --- a/src/datastructures/FacilityAirport.ts +++ b/src/datastructures/FacilityAirport.ts @@ -3,6 +3,8 @@ import { RawBuffer } from '../RawBuffer'; export class FacilityAirport { icao: string; + region: string; + latitude: number; longitude: number; @@ -10,7 +12,8 @@ export class FacilityAirport { altitude: number; constructor(data: RawBuffer) { - this.icao = data.readString(9); + this.icao = data.readString(6); + this.region = data.readString(3); this.latitude = data.readFloat64(); this.longitude = data.readFloat64(); this.altitude = data.readFloat64();