Fix SID class ambiguity on Windows (clashes with winnt.h)
This commit is contained in:
parent
1b7b69b498
commit
b092987656
1 changed files with 2 additions and 2 deletions
|
@ -1025,7 +1025,7 @@ void FGRouteMgr::setSID(const char* aIdent)
|
||||||
{
|
{
|
||||||
FGAirport* apt = _plan->departureAirport();
|
FGAirport* apt = _plan->departureAirport();
|
||||||
if (!apt || (aIdent == NULL)) {
|
if (!apt || (aIdent == NULL)) {
|
||||||
_plan->setSID((SID*) NULL);
|
_plan->setSID((flightgear::SID*) NULL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1035,7 +1035,7 @@ void FGRouteMgr::setSID(const char* aIdent)
|
||||||
string sidIdent = ident.substr(0, hyphenPos);
|
string sidIdent = ident.substr(0, hyphenPos);
|
||||||
string transIdent = ident.substr(hyphenPos + 1);
|
string transIdent = ident.substr(hyphenPos + 1);
|
||||||
|
|
||||||
SID* sid = apt->findSIDWithIdent(sidIdent);
|
flightgear::SID* sid = apt->findSIDWithIdent(sidIdent);
|
||||||
Transition* trans = sid ? sid->findTransitionByName(transIdent) : NULL;
|
Transition* trans = sid ? sid->findTransitionByName(transIdent) : NULL;
|
||||||
_plan->setSID(trans);
|
_plan->setSID(trans);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue