From edee116e90d9fb2d0473192b8a85c141f91cd323 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Wed, 12 Nov 2025 23:21:33 -0500 Subject: [PATCH] Only adjust position if there is length --- src/sdl/al_sound.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sdl/al_sound.c b/src/sdl/al_sound.c index 3c580d841..2b6e5775a 100644 --- a/src/sdl/al_sound.c +++ b/src/sdl/al_sound.c @@ -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;