Fixed bug where if statement didn't have parenthesis, causing it to just exit
[freeglut] / src / blackberry / fg_main_blackberry.c
index 60218a0..73b9f41 100644 (file)
@@ -266,10 +266,11 @@ int fgPlatformGetModifiers (int mod)
 
 void fgPlatformProcessSingleEvent ( void )
 {
-    if(fgStructure.CurrentWindow == NULL)
+    if(fgStructure.CurrentWindow == NULL) {
         //XXX Is this right? Would this just cause a whole lot of busy looping while we wait for events?
-       LOGW("fgPlatformProcessSingleEvent: Missing current window. Skipping event processing");
+        LOGW("fgPlatformProcessSingleEvent: Missing current window. Skipping event processing");
         return;
+    }
 
     int domain;
     do