fixed bug with (soundless) classic toons playing wrong default sound
authorHolger Schemel <info@artsoft.org>
Thu, 14 Apr 2016 17:26:02 +0000 (19:26 +0200)
committerHolger Schemel <info@artsoft.org>
Thu, 14 Apr 2016 17:26:02 +0000 (19:26 +0200)
src/cartoons.c

index 2e0743646589c34105146d28404cc9c217b415c8..e90b2e58f9228644446b08233649f91a75c2a8fb 100644 (file)
@@ -306,12 +306,14 @@ static void InitToonControls()
   for (i = 0; i < num_toons; i++)
   {
     struct GlobalAnimPartControlInfo *part = &anim->part[part_nr];
+    int sound = SND_UNDEFINED;
     int graphic = IMG_TOON_1 + i;
     int control = graphic;
 
     part->nr = part_nr;
     part->anim_nr = anim_nr;
     part->mode_nr = mode_nr;
+    part->sound = sound;
     part->graphic = graphic;
     part->graphic_info = graphic_info[graphic];
     part->control_info = graphic_info[control];