mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-06 18:08:31 +00:00
Initialize engine_path when abspath fails.
This commit is contained in:
parent
fbf9ddb295
commit
46fdd044ce
@ -375,7 +375,13 @@ void InitializeVSP()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
abspath(engine_path, engine_file);
|
|
||||||
|
/* If this fails the file either does not exist or
|
||||||
|
* on Windows the buffer may be too small. */
|
||||||
|
if (abspath(engine_path, engine_file) == NULL)
|
||||||
|
{
|
||||||
|
engine_path[0] = '\0';
|
||||||
|
}
|
||||||
|
|
||||||
const char *usepath = metamod_path.c_str();
|
const char *usepath = metamod_path.c_str();
|
||||||
if (UTIL_Relatize(rel_path, sizeof(rel_path), engine_path, metamod_path.c_str()))
|
if (UTIL_Relatize(rel_path, sizeof(rel_path), engine_path, metamod_path.c_str()))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user