GPS: guard against empty command strings in the route-manager.
This commit is contained in:
parent
8cfdfb21a5
commit
2239eb2660
1 changed files with 4 additions and 0 deletions
|
@ -455,6 +455,10 @@ void FGRouteMgr::update_mirror() {
|
|||
void FGRouteMgr::InputListener::valueChanged(SGPropertyNode *prop)
|
||||
{
|
||||
const char *s = prop->getStringValue();
|
||||
if (strlen(s) == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!strcmp(s, "@CLEAR"))
|
||||
mgr->init();
|
||||
else if (!strcmp(s, "@ACTIVATE"))
|
||||
|
|
Loading…
Add table
Reference in a new issue