Mercurial > mm7
diff GUI/UI/UIHouses.cpp @ 2511:fb1c61a82a55
uHouseID - 1
author | Ritor1 |
---|---|
date | Thu, 02 Oct 2014 17:35:50 +0600 |
parents | a77c34acdbc9 |
children | b96f6cb1855d |
line wrap: on
line diff
--- a/GUI/UI/UIHouses.cpp Thu Oct 02 13:39:42 2014 +0600 +++ b/GUI/UI/UIHouses.cpp Thu Oct 02 17:35:50 2014 +0600 @@ -987,8 +987,8 @@ //----- (004B1E92) -------------------------------------------------------- void PlayHouseSound(unsigned int uHouseID, HouseSoundID sound) { - if ( pAnimatedRooms[p2DEvents[uHouseID].uAnimationID].uRoomSoundId ) - pAudioPlayer->PlaySound((SoundID)(sound + 100 * (pAnimatedRooms[p2DEvents[uHouseID].uAnimationID].uRoomSoundId + 300)), + if ( pAnimatedRooms[p2DEvents[uHouseID - 1].uAnimationID].uRoomSoundId ) + pAudioPlayer->PlaySound((SoundID)(sound + 100 * (pAnimatedRooms[p2DEvents[uHouseID - 1].uAnimationID].uRoomSoundId + 300)), 806, 0, -1, 0, 0, 0, 0); }