1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Clear font_positions if there is no font.txt

This fixes a bug where font_positions wouldn't get cleared after exiting
a custom level that had a font.txt if it didn't exist in the default
graphics, leading to messed-up-looking font rendering.

This bug was originally discovered by Ally.
This commit is contained in:
Misa 2020-09-25 12:52:34 -07:00 committed by Ethan Lee
parent 96be0fc7a9
commit 2e78eab92f

View file

@ -267,6 +267,8 @@ void Graphics::Makebfont()
++pos; ++pos;
} }
FILESYSTEM_freeMemory(&charmap); FILESYSTEM_freeMemory(&charmap);
} else {
font_positions.clear();
} }
} }