fixing idiotic priority cache impl where they won't get younger

This commit is contained in:
minjaesong
2020-05-04 00:09:05 +09:00
parent 4d867d6523
commit c4c67f489e
2 changed files with 2 additions and 2 deletions

View File

@@ -197,8 +197,8 @@ class GameFontBase(
if (key < 0)
return null
// increment age count (see: addToCache(CodepointSequence, Pixmap, Int))
textCache[key].age += 1
// decrement age count (see: addToCache(CodepointSequence, Pixmap, Int))
if (textCache[key].age > 0) textCache[key].age -= 1
return textCache[key]
}