Don't use cache for a default value.

This commit is contained in:
Rolf Ahrenberg 2017-01-05 15:38:42 +02:00
parent fe364e3568
commit 1a98e97e8e
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ bool cFemonSymbolCache::Flush(void)
cBitmap& cFemonSymbolCache::Get(eSymbols symbolP)
{
cBitmap *bitmapM = cacheM[SYMBOL_ONEPIXEL];
cBitmap *bitmapM = &bmOnePixel;
if (symbolP < cacheM.Size())
bitmapM = cacheM[symbolP];