(svn r24052) -Fix (r23883) [FS#5107]: Imported GRF sounds were inserted into the wrong slots.

This commit is contained in:
frosch
2012-03-19 22:55:29 +00:00
parent 2007f7affd
commit 0643a69764
4 changed files with 45 additions and 18 deletions

View File

@@ -218,11 +218,11 @@ static const byte _sound_idx[] = {
void SndCopyToPool()
{
SoundEntry *sound = AllocateSound(ORIGINAL_SAMPLE_COUNT);
for (uint i = 0; i < ORIGINAL_SAMPLE_COUNT; i++) {
SoundEntry *sound = AllocateSound();
*sound = _original_sounds[_sound_idx[i]];
sound->volume = _sound_base_vol[i];
sound->priority = 0;
sound[i] = _original_sounds[_sound_idx[i]];
sound[i].volume = _sound_base_vol[i];
sound[i].priority = 0;
}
}