Only adjust position if there is length
This commit is contained in:
parent
8a8f2d3814
commit
edee116e90
1 changed files with 4 additions and 1 deletions
|
|
@ -1127,7 +1127,10 @@ boolean I_SetSongPosition(UINT32 position)
|
|||
else
|
||||
#endif
|
||||
{
|
||||
position = get_adjusted_position(position);
|
||||
UINT32 length = I_GetSongLength(); // get it in MS
|
||||
|
||||
if (length)
|
||||
position = get_adjusted_position(position);
|
||||
|
||||
position = position / 1000.0f;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue