forked from mirror/OpenTTD
(svn r16337) -Codechange: remove pointless variable + wrapper function; having it return anything else than ORIGINAL_SAMPLE_COUNT is asking for NewGRFs failing to load (due to invalid sample index), thus desyncs
This commit is contained in:
@@ -2020,7 +2020,7 @@ static ChangeInfoResult SoundEffectChangeInfo(uint sid, int numinfo, int prop, b
|
||||
}
|
||||
|
||||
for (int i = 0; i < numinfo; i++) {
|
||||
uint sound = sid + i + _cur_grffile->sound_offset - GetNumOriginalSounds();
|
||||
uint sound = sid + i + _cur_grffile->sound_offset - ORIGINAL_SAMPLE_COUNT;
|
||||
|
||||
if (sound >= GetNumSounds()) {
|
||||
grfmsg(1, "SoundEffectChangeInfo: Sound %d not defined (max %d)", sound, GetNumSounds());
|
||||
|
Reference in New Issue
Block a user