tr2/savegame: fix warning
Some checks failed
Run code linters / Run code linters (push) Has been cancelled

This commit is contained in:
Marcin Kurczewski 2025-04-11 00:52:14 +02:00
parent 7e0b454b77
commit fc1497f197
No known key found for this signature in database
GPG key ID: CC65E6FD28CAE42A

View file

@ -107,7 +107,7 @@ static bool M_FillInfo(MYFILE *const fp, SAVEGAME_INFO *const info)
info->counter = extra_header.counter;
info->level_num = extra_header.level_num;
if (extra_header.title_size >= File_Size(fp)) {
if (extra_header.title_size >= (int32_t)File_Size(fp)) {
return false;
}
info->level_title = Memory_Alloc(extra_header.title_size + 1);