diff options
author | rubidium <rubidium@openttd.org> | 2009-05-17 14:57:14 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-05-17 14:57:14 +0000 |
commit | 83dc6ef6e6064441c9a5ebc22061de313147821a (patch) | |
tree | 8b0b8b6ca9e6aaf81fe59ebc54ae306fba452ff7 /src/newgrf.cpp | |
parent | 10ea72a08e52cf9aaa54551ce201a6091316d47a (diff) | |
download | openttd-83dc6ef6e6064441c9a5ebc22061de313147821a.tar.xz |
(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
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 43a5e9f1f..b058d8fd0 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -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()); |