mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-10 01:09:10 -04:00
[tools/rexm] Update nextCatIndex (#5616)
* removed +1 offset * update from PR feedback
This commit is contained in:
@ -1040,7 +1040,7 @@ int main(int argc, char *argv[])
|
|||||||
// Find position to add new example on list, just before the following category
|
// Find position to add new example on list, just before the following category
|
||||||
// Category order: core, shapes, textures, text, models, shaders, audio
|
// Category order: core, shapes, textures, text, models, shaders, audio
|
||||||
int exListNextCatIndex = -1;
|
int exListNextCatIndex = -1;
|
||||||
if (nextCatIndex != -1) exListNextCatIndex = TextFindIndex(exList, exCategories[nextCatIndex]);
|
if (nextCatIndex != -1) exListNextCatIndex = TextFindIndex(exList, TextFormat("\n%s", exCategories[nextCatIndex])) + 1;
|
||||||
else exListNextCatIndex = exListLen; // EOF
|
else exListNextCatIndex = exListLen; // EOF
|
||||||
|
|
||||||
strncpy(exListUpdated, exList, exListNextCatIndex);
|
strncpy(exListUpdated, exList, exListNextCatIndex);
|
||||||
|
|||||||
Reference in New Issue
Block a user