aboutsummaryrefslogtreecommitdiff
path: root/engines/made/screen.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2008-05-08 13:23:02 +0000
committerFilippos Karapetis2008-05-08 13:23:02 +0000
commita9b4058ba9fd94de7bd293b0763d71f9f90f84bc (patch)
treea7a31180e4707c803a399708f71ed4fdb7d8eeb6 /engines/made/screen.cpp
parent4f108b76a3874a80e6c8a3b5c79c75d737e49ecb (diff)
downloadscummvm-rg350-a9b4058ba9fd94de7bd293b0763d71f9f90f84bc.tar.gz
scummvm-rg350-a9b4058ba9fd94de7bd293b0763d71f9f90f84bc.tar.bz2
scummvm-rg350-a9b4058ba9fd94de7bd293b0763d71f9f90f84bc.zip
Fixed some game crashes which occurred when ProjectReader::purgeCache() got called:
- MIDI music data is marked to be deleted in o1_STOPMUS now, instead of o1_PLAYMUS. - Added a FIXME to Screen::setFont() - purgeCache crashes the game if the active font is deleted svn-id: r31948
Diffstat (limited to 'engines/made/screen.cpp')
-rw-r--r--engines/made/screen.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/made/screen.cpp b/engines/made/screen.cpp
index c88244a8a2..f2888cada7 100644
--- a/engines/made/screen.cpp
+++ b/engines/made/screen.cpp
@@ -599,8 +599,10 @@ void Screen::flash(int flashCount) {
void Screen::setFont(int16 fontNum) {
if (fontNum == _currentFontNum)
return;
- if (_font)
- _vm->_res->freeResource(_font);
+ // FIXME: this causes crashes when
+ // ProjectReader::purgeCache() is called
+ //if (_font)
+ // _vm->_res->freeResource(_font);
_font = _vm->_res->getFont(fontNum);
_currentFontNum = fontNum;
}