Unified · Split
| @@ -4302,7 +4302,7 @@ static int process_tick(DUMB_IT_SIGRENDERER *sigrenderer) · 4301 unmodified lines | ||
| 4302 | 4302 | { |
| 4303 | 4303 | DUMB_IT_SIGDATA *sigdata = sigrenderer->sigdata; |
| 4304 | 4304 | |
| 4305 | − if ( !sigrenderer->tempo ) // problematic, causes divide by zero below | |
| 4305 | + if ( sigrenderer->tempo < 32 || sigrenderer->tempo > 255 ) // problematic | |
| 4306 | 4306 | return 1; |
| 4307 | 4307 | |
| 4308 | 4308 | // Set note vol/freq to vol/freq set for each channel |