瀏覽代碼

REVIEWED: Possibly obfuscated variable in loop!

Ray 1 年之前
父節點
當前提交
56ec987258
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/raygui.h

+ 1 - 1
src/raygui.h

@@ -4485,7 +4485,7 @@ static void GuiLoadStyleFromMemory(const unsigned char *fileData, int dataSize)
                 // NOTE: All DEFAULT properties should be defined first in the file
                 // NOTE: All DEFAULT properties should be defined first in the file
                 GuiSetStyle(0, (int)propertyId, propertyValue);
                 GuiSetStyle(0, (int)propertyId, propertyValue);
 
 
-                if (propertyId < RAYGUI_MAX_PROPS_BASE) for (int i = 1; i < RAYGUI_MAX_CONTROLS; i++) GuiSetStyle(i, (int)propertyId, propertyValue);
+                if (propertyId < RAYGUI_MAX_PROPS_BASE) for (int j = 1; j < RAYGUI_MAX_CONTROLS; j++) GuiSetStyle(j, (int)propertyId, propertyValue);
             }
             }
             else GuiSetStyle((int)controlId, (int)propertyId, propertyValue);
             else GuiSetStyle((int)controlId, (int)propertyId, propertyValue);
         }
         }