From a9b4058ba9fd94de7bd293b0763d71f9f90f84bc Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 8 May 2008 13:23:02 +0000 Subject: 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 --- engines/made/scriptfuncs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/made/scriptfuncs.h') diff --git a/engines/made/scriptfuncs.h b/engines/made/scriptfuncs.h index 14645c6d1b..5f1a73d940 100644 --- a/engines/made/scriptfuncs.h +++ b/engines/made/scriptfuncs.h @@ -31,6 +31,8 @@ #include "common/func.h" #include "common/stream.h" +#include "made/resource.h" + namespace Made { class MadeEngine; @@ -60,7 +62,7 @@ protected: Common::Array _externalFuncs; Common::Array _externalFuncNames; - + GenericResource *_xmidiRes; }; class ScriptFunctionsLgop2 : public ScriptFunctions { -- cgit v1.2.3