Просмотр исходного кода

[tools/rexm] Update nextCatIndex (#5616)

* removed +1 offset

* update from PR feedback
pull/5619/head
Thomas Anderson 4 дней назад
committed by GitHub
Родитель
Сommit
b68dbaa8af
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: B5690EEEBB952194
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      tools/rexm/rexm.c

+ 1
- 1
tools/rexm/rexm.c Просмотреть файл

@ -1040,7 +1040,7 @@ int main(int argc, char *argv[])
// Find position to add new example on list, just before the following category
// Category order: core, shapes, textures, text, models, shaders, audio
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
strncpy(exListUpdated, exList, exListNextCatIndex);

Загрузка…
Отмена
Сохранить