aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorColin Snover2016-11-23 10:14:14 -0600
committerColin Snover2016-12-03 12:21:55 -0600
commit12b2bc408f3b482132c4d6bf713ebc674c22f183 (patch)
tree317ae583605a91008e3de4fc4702a051febf3907 /engines/sci/engine
parent273695a11ec03d9dbd5916b89966fe55936d8394 (diff)
downloadscummvm-rg350-12b2bc408f3b482132c4d6bf713ebc674c22f183.tar.gz
scummvm-rg350-12b2bc408f3b482132c4d6bf713ebc674c22f183.tar.bz2
scummvm-rg350-12b2bc408f3b482132c4d6bf713ebc674c22f183.zip
SCI: Remove unnecessary lock in SegManager
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/seg_manager.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/sci/engine/seg_manager.cpp b/engines/sci/engine/seg_manager.cpp
index 83e7495b3c..35a655fb4c 100644
--- a/engines/sci/engine/seg_manager.cpp
+++ b/engines/sci/engine/seg_manager.cpp
@@ -962,7 +962,7 @@ void SegManager::freeBitmap(const reg_t addr) {
#endif
void SegManager::createClassTable() {
- Resource *vocab996 = _resMan->findResource(ResourceId(kResourceTypeVocab, 996), 1);
+ Resource *vocab996 = _resMan->findResource(ResourceId(kResourceTypeVocab, 996), false);
if (!vocab996)
error("SegManager: failed to open vocab 996");
@@ -976,8 +976,6 @@ void SegManager::createClassTable() {
_classTable[classNr].reg = NULL_REG;
_classTable[classNr].script = scriptNr;
}
-
- _resMan->unlockResource(vocab996);
}
reg_t SegManager::getClassAddress(int classnr, ScriptLoadType lock, uint16 callerSegment) {