1
0
Fork 0

fix data type (no wonder that this crashes on 64 bit systems :-)

This commit is contained in:
mfranz 2006-05-14 11:14:49 +00:00
parent b30d903a56
commit 7ddc71dd13

View file

@ -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 );