mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
fixed bug which was discovered due to a GCC warning
This commit is contained in:
@@ -486,9 +486,12 @@ namespace BlackCore
|
|||||||
{
|
{
|
||||||
const char* key = keysValues[0];
|
const char* key = keysValues[0];
|
||||||
const char* value = keysValues[1];
|
const char* value = keysValues[1];
|
||||||
if (key == net->capability_AtcInfo) { flags |= AcceptsAtisResponses; }
|
if (*value == '1')
|
||||||
else if (key == net->capability_InterimPos) { flags |= SupportsInterimPosUpdates; }
|
{
|
||||||
else if (key == net->capability_ModelDesc) { flags |= SupportsModelDescriptions; }
|
if (key == net->capability_AtcInfo) { flags |= AcceptsAtisResponses; }
|
||||||
|
else if (key == net->capability_InterimPos) { flags |= SupportsInterimPosUpdates; }
|
||||||
|
else if (key == net->capability_ModelDesc) { flags |= SupportsModelDescriptions; }
|
||||||
|
}
|
||||||
keysValues += 2;
|
keysValues += 2;
|
||||||
}
|
}
|
||||||
emit cbvar_cast(cbvar)->capabilitiesQueryReplyReceived(cbvar_cast(cbvar)->fromFSD(callsign), flags);
|
emit cbvar_cast(cbvar)->capabilitiesQueryReplyReceived(cbvar_cast(cbvar)->fromFSD(callsign), flags);
|
||||||
|
|||||||
Reference in New Issue
Block a user