diff options
-rw-r--r-- | sound/mods/module.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/mods/module.cpp b/sound/mods/module.cpp index ce12ce9382..96d977d422 100644 --- a/sound/mods/module.cpp +++ b/sound/mods/module.cpp @@ -177,7 +177,7 @@ bool Module::load(Common::SeekableReadStream &st, int offs) { // For modules that use common samples for (int j = 0; j < NUM_SAMPLES; ++j) { if (!scumm_stricmp((const char *)commonSamples[j].name, (const char *)sample[i].name)) { - sample[i].len = commonSamples[i].len; + sample[i].len = commonSamples[j].len; st.seek(commonSamples[j].offs); break; } |