Only adjust position if there is length

This commit is contained in:
NepDisk 2025-11-12 23:21:33 -05:00
parent 8a8f2d3814
commit edee116e90

View file

@ -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;