forked from mirror/OpenTTD
(svn r24052) -Fix (r23883) [FS#5107]: Imported GRF sounds were inserted into the wrong slots.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user