Skip to content

Commit

Permalink
SCI: Remove unnecessary lock in SegManager
Browse files Browse the repository at this point in the history
  • Loading branch information
csnover committed Dec 3, 2016
1 parent 273695a commit 12b2bc4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions engines/sci/engine/seg_manager.cpp
Expand Up @@ -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");
Expand All @@ -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) {
Expand Down

0 comments on commit 12b2bc4

Please sign in to comment.