Mercurial > mm7
diff GUI/UI/UIHouses.cpp @ 2515:b96f6cb1855d
LPWSTR wStr = new WCHAR[255]
author | Ritor1 |
---|---|
date | Thu, 02 Oct 2014 21:16:27 +0600 |
parents | fb1c61a82a55 |
children | 09c3114c6e4e |
line wrap: on
line diff
--- a/GUI/UI/UIHouses.cpp Thu Oct 02 19:40:13 2014 +0600 +++ b/GUI/UI/UIHouses.cpp Thu Oct 02 21:16:27 2014 +0600 @@ -987,8 +987,8 @@ //----- (004B1E92) -------------------------------------------------------- void PlayHouseSound(unsigned int uHouseID, HouseSoundID sound) { - if ( pAnimatedRooms[p2DEvents[uHouseID - 1].uAnimationID].uRoomSoundId ) - pAudioPlayer->PlaySound((SoundID)(sound + 100 * (pAnimatedRooms[p2DEvents[uHouseID - 1].uAnimationID].uRoomSoundId + 300)), + if ( pAnimatedRooms[p2DEvents[uHouseID].uAnimationID].uRoomSoundId ) + pAudioPlayer->PlaySound((SoundID)(sound + 100 * (pAnimatedRooms[p2DEvents[uHouseID].uAnimationID].uRoomSoundId + 300)), 806, 0, -1, 0, 0, 0, 0); }