mirror of
https://github.com/raysan5/raygui.git
synced 2026-02-08 07:09:18 -05:00
Corrected issue on style loading
This commit is contained in:
3
raygui.h
3
raygui.h
@ -1424,6 +1424,8 @@ RAYGUIDEF void LoadGuiStyle(const char *fileName)
|
||||
|
||||
FILE *styleFile = fopen(fileName, "rt");
|
||||
|
||||
if (styleFile != NULL)
|
||||
{
|
||||
while (!feof(styleFile))
|
||||
{
|
||||
fscanf(styleFile, "%s %i\n", styleProp[counter].id, &styleProp[counter].value);
|
||||
@ -1443,6 +1445,7 @@ RAYGUIDEF void LoadGuiStyle(const char *fileName)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
RAYGUI_FREE(styleProp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user