Fix invalid access to font descriptor

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

No files matched your search

+1
View File
@@ -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.
+1 -1
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)