1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 16:54:52 +01:00

Fix invalid access to font descriptor

This commit is contained in:
Michał Janiszewski
2018-10-03 21:20:04 +02:00
committed by Michael Steenbeek
parent 65dcc381f4
commit b05e66e67d
2 changed files with 2 additions and 1 deletions

View File

@@ -104,7 +104,7 @@ void ttf_dispose()
ttf_surface_cache_dispose_all();
ttf_getwidth_cache_dispose_all();
for (int32_t i = 0; i < 4; i++)
for (int32_t i = 0; i < FONT_SIZE_COUNT; i++)
{
TTFFontDescriptor* fontDesc = &(gCurrentTTFFontSet->size[i]);
if (fontDesc->font != nullptr)