mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix improper check of dir->path empty string
This commit is contained in:
parent
8ac186ce17
commit
49335ba8a8
1 changed files with 1 additions and 1 deletions
|
@ -4379,7 +4379,7 @@ void FS_FileTime(const char *filename, char *date, char *size)
|
|||
// but look through all searchpaths
|
||||
//ospath = FS_BuildOSPath(fs_homepath->string, fs_gamedir, filename);
|
||||
for (auto search = fs_searchpaths; search; search = search->next) {
|
||||
if (search->dir != NULL && search->dir->path != NULL) {
|
||||
if (search->dir != NULL && search->dir->path[0]) {
|
||||
ospath = FS_BuildOSPath(search->dir->path, fs_gamedir, filename);
|
||||
result = stat(ospath, &fileStat);
|
||||
if (result != -1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue