From: ThorstenB Date: Wed, 28 Mar 2012 21:03:13 +0000 (+0200) Subject: Properly drop empty tiles from tile cache. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5ef15023fcd9906d743b4ce043de76cb7aca00b2;p=flightgear.git Properly drop empty tiles from tile cache. Tiles which expired before being loaded could clog the tile cache. --- diff --git a/src/Scenery/tilecache.cxx b/src/Scenery/tilecache.cxx index ffe62a744..172b604ff 100644 --- a/src/Scenery/tilecache.cxx +++ b/src/Scenery/tilecache.cxx @@ -100,6 +100,7 @@ long TileCache::get_drop_tile() { * Allow a 1 second timeout since an empty tiles may just be loaded... */ SG_LOG( SG_TERRAIN, SG_DEBUG, " dropping an unused and empty tile"); + min_index = index; break; } if (( e->get_time_expired() < min_time )||