diff options
author | Max Horn | 2010-02-13 17:44:19 +0000 |
---|---|---|
committer | Max Horn | 2010-02-13 17:44:19 +0000 |
commit | a82939c9bee20f2969f1006c1c9a836cea5c7903 (patch) | |
tree | 1d09caf84f1b1d7787b539952cd739f66383c68d /engines/sci/engine/kstring.cpp | |
parent | 721a57a66101d63bc05e294c24190ba66ccceb74 (diff) | |
download | scummvm-rg350-a82939c9bee20f2969f1006c1c9a836cea5c7903.tar.gz scummvm-rg350-a82939c9bee20f2969f1006c1c9a836cea5c7903.tar.bz2 scummvm-rg350-a82939c9bee20f2969f1006c1c9a836cea5c7903.zip |
SCI: Get rid of EngineState::resMan
svn-id: r48048
Diffstat (limited to 'engines/sci/engine/kstring.cpp')
-rw-r--r-- | engines/sci/engine/kstring.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/kstring.cpp b/engines/sci/engine/kstring.cpp index f3662da6fe..14b5ab6742 100644 --- a/engines/sci/engine/kstring.cpp +++ b/engines/sci/engine/kstring.cpp @@ -43,7 +43,7 @@ Common::String kernel_lookup_text(EngineState *s, reg_t address, int index) { else { int textlen; int _index = index; - textres = s->resMan->findResource(ResourceId(kResourceTypeText, address.offset), 0); + textres = g_sci->getResMan()->findResource(ResourceId(kResourceTypeText, address.offset), 0); if (!textres) { error("text.%03d not found", address.offset); @@ -420,7 +420,7 @@ reg_t kStrLen(EngineState *s, int argc, reg_t *argv) { reg_t kGetFarText(EngineState *s, int argc, reg_t *argv) { - Resource *textres = s->resMan->findResource(ResourceId(kResourceTypeText, argv[0].toUint16()), 0); + Resource *textres = g_sci->getResMan()->findResource(ResourceId(kResourceTypeText, argv[0].toUint16()), 0); char *seeker; int counter = argv[1].toUint16(); |