]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIManager.cxx
Clear chat messages when an aircraft becomes inactive in the property tree.
[flightgear.git] / src / AIModel / AIManager.cxx
index cec1980acae042af721f65470b2b95bcdcf2d148..e0ef64813fa975a3f98bce4c99d4f486184faee3 100644 (file)
@@ -155,6 +155,8 @@ FGAIManager::update(double dt) {
             props->setIntValue("id", -1);
             props->setBoolValue("radar/in-range", false);
             props->setIntValue("refuel/tanker", false);
+            props->setStringValue("sim/multiplay/chat", "");
+            props->setStringValue("sim/multiplay/transmission-freq-hz", "");
 
             ai_list_itr = ai_list.erase(ai_list_itr);
         } else {