mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
Avoid constructing CStatusMessage format string from external data source.
Put external data source as argument using stream operator instead. Part 1 of hotfix for assert caused by percent character in vatsim-data.txt
This commit is contained in:
@@ -433,7 +433,7 @@ namespace BlackCore
|
||||
if (!illegalEquipmentCodes.isEmpty())
|
||||
{
|
||||
CVatsimDataFileReader::logInconsistentData(
|
||||
CStatusMessage(this, CStatusMessage::SeverityInfo, u"Illegal / ignored equipment code(s) in VATSIM data file: " % illegalEquipmentCodes.join(", "))
|
||||
CStatusMessage(this, CStatusMessage::SeverityInfo, u"Illegal / ignored equipment code(s) in VATSIM data file: %1") << illegalEquipmentCodes.join(", ")
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user