aboutsummaryrefslogtreecommitdiff
path: root/windows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'windows.cpp')
-rw-r--r--windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/windows.cpp b/windows.cpp
index 7890054c27..5d43000ce4 100644
--- a/windows.cpp
+++ b/windows.cpp
@@ -507,9 +507,9 @@ DWORD _stdcall WndMan::sound_thread(WndMan *wm) {
int time = GetTickCount(), cur;
while (1) {
+ cur = GetTickCount();
if (!snd_driv.wave_based()) {
- cur = GetTickCount();
while (time < cur) {
sound.on_timer();
time += 10;