aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2009-05-30 09:07:28 +0000
committerFilippos Karapetis2009-05-30 09:07:28 +0000
commit4960b64b484d3e80258feedea3f711704d7e0743 (patch)
tree629a077d44a22c22681dbec53d336bf9e48a09a6
parenta6abd5c2fc232ab589af0acde95f519cabc75659 (diff)
downloadscummvm-rg350-4960b64b484d3e80258feedea3f711704d7e0743.tar.gz
scummvm-rg350-4960b64b484d3e80258feedea3f711704d7e0743.tar.bz2
scummvm-rg350-4960b64b484d3e80258feedea3f711704d7e0743.zip
Fixed a silly typo in commit #40979. Suffixes should be loaded correctly again
svn-id: r41018
-rw-r--r--engines/sci/vocabulary.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/sci/vocabulary.cpp b/engines/sci/vocabulary.cpp
index aebccc7fbd..df2c1bc6d2 100644
--- a/engines/sci/vocabulary.cpp
+++ b/engines/sci/vocabulary.cpp
@@ -226,10 +226,10 @@ const char *vocab_get_any_group_word(int group, const WordMap &words) {
bool vocab_get_suffixes(ResourceManager *resmgr, SuffixList &suffixes) {
// Determine if we got a SCI0 vocabulary loaded
- Resource* resource = resmgr->findResource(kResourceTypeVocab, VOCAB_RESOURCE_SCI0_MAIN_VOCAB, 1);
+ Resource* resource = resmgr->findResource(kResourceTypeVocab, VOCAB_RESOURCE_SCI0_SUFFIX_VOCAB, 1);
if (!resource)
// No SCI0 vocabulary? Try SCI1
- resource = resmgr->findResource(kResourceTypeVocab, VOCAB_RESOURCE_SCI1_MAIN_VOCAB, 1);
+ resource = resmgr->findResource(kResourceTypeVocab, VOCAB_RESOURCE_SCI1_SUFFIX_VOCAB, 1);
if (!resource)
return false; // No vocabulary found
@@ -264,14 +264,14 @@ bool vocab_get_suffixes(ResourceManager *resmgr, SuffixList &suffixes) {
void vocab_free_suffixes(ResourceManager *resmgr, SuffixList &suffixes) {
// Determine if we got a SCI0 vocabulary loaded
- Resource* resource = resmgr->findResource(kResourceTypeVocab, VOCAB_RESOURCE_SCI0_MAIN_VOCAB, 0);
+ Resource* resource = resmgr->findResource(kResourceTypeVocab, VOCAB_RESOURCE_SCI0_SUFFIX_VOCAB, 0);
if (resource && resource->status == kResStatusLocked) {
- resmgr->unlockResource(resource, VOCAB_RESOURCE_SCI0_MAIN_VOCAB, kResourceTypeVocab);
+ resmgr->unlockResource(resource, VOCAB_RESOURCE_SCI0_SUFFIX_VOCAB, kResourceTypeVocab);
} else {
// No SCI0 vocabulary? Try SCI1
- resource = resmgr->findResource(kResourceTypeVocab, VOCAB_RESOURCE_SCI1_MAIN_VOCAB, 0);
+ resource = resmgr->findResource(kResourceTypeVocab, VOCAB_RESOURCE_SCI1_SUFFIX_VOCAB, 0);
if (resource && resource->status == kResStatusLocked)
- resmgr->unlockResource(resource, VOCAB_RESOURCE_SCI1_MAIN_VOCAB, kResourceTypeVocab);
+ resmgr->unlockResource(resource, VOCAB_RESOURCE_SCI1_SUFFIX_VOCAB, kResourceTypeVocab);
}
suffixes.clear();