fix data type (no wonder that this crashes on 64 bit systems :-)
This commit is contained in:
parent
b30d903a56
commit
7ddc71dd13
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ int FGRouteMgr::make_waypoint( SGWayPoint **wp, const string& tgt ) {
|
|||
|
||||
// extract altitude
|
||||
double alt = -9999.0;
|
||||
unsigned int pos = target.find( '@' );
|
||||
size_t pos = target.find( '@' );
|
||||
if ( pos != string::npos ) {
|
||||
alt = atof( target.c_str() + pos + 1 );
|
||||
target = target.substr( 0, pos );
|
||||
|
|
Loading…
Reference in a new issue