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:
committed by
Michael Steenbeek
parent
65dcc381f4
commit
b05e66e67d
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user