Fix null reference - happened to me once.
This commit is contained in:
parent
b020db5ce7
commit
fc78ef2e4e
1 changed files with 1 additions and 1 deletions
|
@ -1714,7 +1714,7 @@ FGPositionedRef NavDataCache::loadById(PositionedID rowid)
|
|||
if (rowid == 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!d) return NULL;
|
||||
PositionedCache::iterator it = d->cache.find(rowid);
|
||||
if (it != d->cache.end()) {
|
||||
d->cacheHits++;
|
||||
|
|
Loading…
Reference in a new issue