mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- fix division by 0.
SVN r2243 (trunk)
This commit is contained in:
parent
0f0c02f9d6
commit
a6a303f438
1 changed files with 1 additions and 1 deletions
|
@ -1737,7 +1737,7 @@ bool FMODSoundRenderer::HandleChannelDelay(FMOD::Channel *chan, FISoundChannel *
|
|||
if (FMOD_OK == chan->getCurrentSound(&sound))
|
||||
{
|
||||
unsigned int len;
|
||||
if (FMOD_OK == sound->getLength(&len, FMOD_TIMEUNIT_MS))
|
||||
if (FMOD_OK == sound->getLength(&len, FMOD_TIMEUNIT_MS) && len)
|
||||
{
|
||||
difftime %= len;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue