fixed compiler warning
[rocksndiamonds.git] / src / screens.c
index 7b25e79f2103cd77611c5345e9925fd8453ad05b..bf9f0a966348c1a9a9b4a82e764287ef8fed4c69 100644 (file)
@@ -1938,7 +1938,7 @@ void HandleMainMenu(int mx, int my, int dx, int dy, int button)
   static boolean button_pressed_last = FALSE;
   boolean button_pressed = FALSE;
   int pos = choice;
-  int i;
+  int i = 0;   // needed to prevent compiler warning due to bad code below
 
   if (button == MB_MENU_INITIALIZE)
   {