Commit 5e669797 authored by DonLakeFlyer's avatar DonLakeFlyer

Compiler warning fix

parent 85e0c56a
......@@ -316,7 +316,7 @@ bool SimpleMissionItem::load(const QJsonObject& json, int sequenceNumber, QStrin
return false;
}
_altitudeMode = (AltitudeMode)json[_jsonAltitudeModeKey].toDouble();
_altitudeMode = (AltitudeMode)(int)json[_jsonAltitudeModeKey].toDouble();
_altitudeFact.setRawValue(JsonHelper::possibleNaNJsonValue(json[_jsonAltitudeKey]));
_amslAltAboveTerrainFact.setRawValue(JsonHelper::possibleNaNJsonValue(json[_jsonAltitudeKey]));
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment