aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/made/screen.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/made/screen.cpp b/engines/made/screen.cpp
index f2888cada7..c88244a8a2 100644
--- a/engines/made/screen.cpp
+++ b/engines/made/screen.cpp
@@ -599,10 +599,8 @@ void Screen::flash(int flashCount) {
void Screen::setFont(int16 fontNum) {
if (fontNum == _currentFontNum)
return;
- // FIXME: this causes crashes when
- // ProjectReader::purgeCache() is called
- //if (_font)
- // _vm->_res->freeResource(_font);
+ if (_font)
+ _vm->_res->freeResource(_font);
_font = _vm->_res->getFont(fontNum);
_currentFontNum = fontNum;
}