diff UIHouses.cpp @ 1285:62f4cdaa726b

shot from a bow and more
author Ritor1
date Sat, 15 Jun 2013 23:58:19 +0600
parents ce8ea73e7678
children 6bbd50bda571 dcc52e17b517
line wrap: on
line diff
--- a/UIHouses.cpp	Sat Jun 15 17:39:20 2013 +0600
+++ b/UIHouses.cpp	Sat Jun 15 23:58:19 2013 +0600
@@ -561,10 +561,10 @@
 void PlayHouseSound(unsigned int uHouseID, HouseSoundID sound)
 {
     //if ( BYTE1(pAnimatedRooms[p2DEvents_minus1___02[26 * uHouseID]].field_C) )
-    if ( pAnimatedRooms[p2DEvents[uHouseID - 1].uAnimationID].uRoomSoundId )
+    if ( pAnimatedRooms[p2DEvents[uHouseID].uAnimationID].uRoomSoundId )
         pAudioPlayer->PlaySound(
         //(SoundID)(a2 + 100 * (BYTE1(pAnimatedRooms[p2DEvents_minus1___02[26 * uHouseID]].field_C) + 300)),
-        (SoundID)(sound + 100 * (pAnimatedRooms[p2DEvents[uHouseID - 1].uAnimationID].uRoomSoundId + 300)),
+        (SoundID)(sound + 100 * (pAnimatedRooms[p2DEvents[uHouseID].uAnimationID].uRoomSoundId + 300)),
         806, 0, -1, 0, 0, 0, 0);
 }