src/timer/windows/SDL_systimer.c
changeset 7652 cf8970659129
parent 7650 cd3465de2f42
child 8093 b43765095a6f
child 8535 e8ee0708ef5c
--- a/src/timer/windows/SDL_systimer.c	Sat Aug 17 17:14:15 2013 -0700
+++ b/src/timer/windows/SDL_systimer.c	Sat Aug 17 20:46:34 2013 -0400
@@ -108,15 +108,15 @@
 Uint32
 SDL_GetTicks(void)
 {
-    if (!ticks_started) {
-        SDL_InitTicks();
-    }
-
     DWORD now;
 #ifndef USE_GETTICKCOUNT
     LARGE_INTEGER hires_now;
 #endif
 
+    if (!ticks_started) {
+        SDL_InitTicks();
+    }
+
 #ifdef USE_GETTICKCOUNT
     now = GetTickCount();
 #else