Skip to content

Commit b68dbaa

Browse files
authored
[tools/rexm] Update nextCatIndex (#5616)
* removed +1 offset * update from PR feedback
1 parent 9ae34d2 commit b68dbaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/rexm/rexm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ int main(int argc, char *argv[])
10401040
// Find position to add new example on list, just before the following category
10411041
// Category order: core, shapes, textures, text, models, shaders, audio
10421042
int exListNextCatIndex = -1;
1043-
if (nextCatIndex != -1) exListNextCatIndex = TextFindIndex(exList, exCategories[nextCatIndex]);
1043+
if (nextCatIndex != -1) exListNextCatIndex = TextFindIndex(exList, TextFormat("\n%s", exCategories[nextCatIndex])) + 1;
10441044
else exListNextCatIndex = exListLen; // EOF
10451045

10461046
strncpy(exListUpdated, exList, exListNextCatIndex);

0 commit comments

Comments
 (0)