1
0
Fork 0

Fix null reference - happened to me once.

This commit is contained in:
Richard Harrison 2017-04-02 13:54:40 +02:00
parent b020db5ce7
commit fc78ef2e4e

View file

@ -1714,7 +1714,7 @@ FGPositionedRef NavDataCache::loadById(PositionedID rowid)
if (rowid == 0) { if (rowid == 0) {
return NULL; return NULL;
} }
if (!d) return NULL;
PositionedCache::iterator it = d->cache.find(rowid); PositionedCache::iterator it = d->cache.find(rowid);
if (it != d->cache.end()) { if (it != d->cache.end()) {
d->cacheHits++; d->cacheHits++;