From 28299ae5fed510386a401bca8e89dc19fcb75c99 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sat, 15 Jan 2011 16:46:18 -0600 Subject: [PATCH] attempt to make reloading fonts work again --- src/FontManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/FontManager.cpp b/src/FontManager.cpp index 064594703f..837a5d5aa1 100644 --- a/src/FontManager.cpp +++ b/src/FontManager.cpp @@ -40,6 +40,8 @@ void FontManager::ReloadFonts() Font* FontManager::LoadFont( const RString &sFontOrTextureFilePath, RString sChars ) { + PruneFonts(); + Font *pFont; // Convert the path to lowercase so that we don't load duplicates. // Really, this does not solve the duplicate problem. We could have two copies