fixed bug which was discovered due to a GCC warning

This commit is contained in:
Mathew Sutcliffe
2013-09-24 01:04:22 +01:00
parent dc436735cc
commit 01af31d4da

View File

@@ -486,9 +486,12 @@ namespace BlackCore
{
const char* key = keysValues[0];
const char* value = keysValues[1];
if (key == net->capability_AtcInfo) { flags |= AcceptsAtisResponses; }
else if (key == net->capability_InterimPos) { flags |= SupportsInterimPosUpdates; }
else if (key == net->capability_ModelDesc) { flags |= SupportsModelDescriptions; }
if (*value == '1')
{
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;
}
emit cbvar_cast(cbvar)->capabilitiesQueryReplyReceived(cbvar_cast(cbvar)->fromFSD(callsign), flags);