diff --git a/polymer/eduke32/source/actors.c b/polymer/eduke32/source/actors.c index 72156ad36..756bda20a 100644 --- a/polymer/eduke32/source/actors.c +++ b/polymer/eduke32/source/actors.c @@ -1239,7 +1239,9 @@ static void movefx(void) if (p == myconnectindex && ps[p].cursectnum == s->sectnum) { j = s->lotag+((unsigned)global_random%(s->hitag+1)); - sound(j); + if (j < NUM_SOUNDS && sounds[j]) + sound(j); + else OSD_Printf("WARNING: invalid sound #%d\n",j); T5 = 26*40 + (global_random%(26*40)); } } diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index f2f87f1f4..3ac9fdf39 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -4650,7 +4650,6 @@ static void InitProjectiles(void) projectile[i].offset = 448; projectile[i].bounces = numfreezebounces; projectile[i].bsound = PIPEBOMB_BOUNCE; - // defaultprojectile[i] = projectile[i]; } Bmemcpy(&defaultprojectile, &projectile, sizeof(projectile)); }