aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/resource.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2009-03-23 20:25:25 +0000
committerTorbjörn Andersson2009-03-23 20:25:25 +0000
commit1a0dea396d21c84b364b511759253a4b33c71bfc (patch)
tree64409579609dac951ce75d2e73179d8873376cf4 /engines/saga/resource.h
parent9ed052f38e0786246b7184005420a045cf23d6e6 (diff)
downloadscummvm-rg350-1a0dea396d21c84b364b511759253a4b33c71bfc.tar.gz
scummvm-rg350-1a0dea396d21c84b364b511759253a4b33c71bfc.tar.bz2
scummvm-rg350-1a0dea396d21c84b364b511759253a4b33c71bfc.zip
Made the music and sound file names part of the class, instead of local
variables. This fixes another Valgrind warning when SndRes::load() tries to access the file names. (I could also have made the variables static, but I've never been very fond of static variables.) svn-id: r39641
Diffstat (limited to 'engines/saga/resource.h')
-rw-r--r--engines/saga/resource.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/saga/resource.h b/engines/saga/resource.h
index f861f0f52e..c3554cf7ce 100644
--- a/engines/saga/resource.h
+++ b/engines/saga/resource.h
@@ -158,6 +158,8 @@ protected:
ResourceContext *_contexts;
int _contextsCount;
char _voicesFileName[8][256];
+ char _musicFileName[256];
+ char _soundFileName[256];
bool loadContext(ResourceContext *context);
virtual bool loadMacContext(ResourceContext *context) = 0;