From 9fa035f4676a0f2d185f235164af6dfbe0dd038e Mon Sep 17 00:00:00 2001 From: Darkvater Date: Fri, 23 Feb 2007 12:56:10 +0000 Subject: (svn r8860) -Cleanup: some style changes, proper #endif comments, variable initialisation, WINCE ifdef and a vsprintf to vsnprintf change. --- src/newgrf_sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newgrf_sound.cpp') diff --git a/src/newgrf_sound.cpp b/src/newgrf_sound.cpp index 16990faf5..7bc44e04b 100644 --- a/src/newgrf_sound.cpp +++ b/src/newgrf_sound.cpp @@ -37,7 +37,7 @@ void InitializeSoundPool(void) FileEntry *GetSound(uint index) { - if (index >= _sound_count) return NULL; + if (index >= GetNumSounds()) return NULL; return GetSoundInternal(index); } -- cgit v1.2.3-54-g00ecf