mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Fix invalid access to font descriptor
This commit is contained in:
committed by
Michael Steenbeek
parent
65dcc381f4
commit
b05e66e67d
@@ -10,6 +10,7 @@
|
||||
- Fix: [#7954] Key validation fails on Windows due to non-ASCII user / player name.
|
||||
- Fix: [#7975] Inspection flag not cleared for rides which are set to never be inspected (Original bug).
|
||||
- Fix: [#8034] Vanilla sprites are broken when making screenshots from command line.
|
||||
- Fix: [#8045] Crash when switching between languages.
|
||||
- Improved: [#2940] Allow mouse-dragging to set patrol area (Singleplayer only).
|
||||
- Improved: [#7730] Draw extreme vertical and lateral Gs red in the ride window's graph tab.
|
||||
- Improved: [#7930] Automatically create folders for custom content.
|
||||
|
||||
@@ -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