Fix compilation with SYSTEM_SQLITE, from Markus Wanner
Fix error "no known conversion for argument 1 from ‘sqlite3_int64 {aka long long int}’ to ‘PositionedID& {aka long int&}’" (Both those types are int64, but that evidently isn't enough)
This commit is contained in:
parent
c8b1655edc
commit
6adb8b22df
1 changed files with 2 additions and 1 deletions
|
@ -942,6 +942,7 @@ FGPositioned* NavDataCache::NavDataCachePrivate::loadById(sqlite3_int64 rowid)
|
|||
assert(rowid == sqlite3_column_int64(loadPositioned, 0));
|
||||
FGPositioned::Type ty = (FGPositioned::Type) sqlite3_column_int(loadPositioned, 1);
|
||||
|
||||
PositionedID prowid = static_cast<PositionedID>(rowid);
|
||||
string ident = (char*) sqlite3_column_text(loadPositioned, 2);
|
||||
string name = (char*) sqlite3_column_text(loadPositioned, 3);
|
||||
sqlite3_int64 aptId = sqlite3_column_int64(loadPositioned, 4);
|
||||
|
@ -959,7 +960,7 @@ FGPositioned* NavDataCache::NavDataCachePrivate::loadById(sqlite3_int64 rowid)
|
|||
return loadAirport(rowid, ty, ident, name, pos);
|
||||
|
||||
case FGPositioned::TOWER:
|
||||
return new AirportTower(rowid, aptId, ident, pos);
|
||||
return new AirportTower(prowid, aptId, ident, pos);
|
||||
|
||||
case FGPositioned::RUNWAY:
|
||||
case FGPositioned::HELIPAD:
|
||||
|
|
Loading…
Add table
Reference in a new issue