diff options
Diffstat (limited to 'engines/sci/engine/message.cpp')
-rw-r--r-- | engines/sci/engine/message.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/message.cpp b/engines/sci/engine/message.cpp index a55d692afe..fe122e960f 100644 --- a/engines/sci/engine/message.cpp +++ b/engines/sci/engine/message.cpp @@ -220,7 +220,7 @@ int MessageState::getLength() { return strlen(stringptr); } -int MessageState::loadRes(ResourceManager *resmgr, int module, bool lock) { +int MessageState::loadRes(ResourceManager *resourceManager, int module, bool lock) { if (_locked) { // We already have a locked resource if (_module == module) { @@ -229,11 +229,11 @@ int MessageState::loadRes(ResourceManager *resmgr, int module, bool lock) { } // Otherwise, free the old resource - resmgr->unlockResource(_currentResource); + resourceManager->unlockResource(_currentResource); _locked = false; } - _currentResource = resmgr->findResource(ResourceId(kResourceTypeMessage, module), lock); + _currentResource = resourceManager->findResource(ResourceId(kResourceTypeMessage, module), lock); if (_currentResource == NULL || _currentResource->data == NULL) { warning("Message: failed to load %d.msg", module); |