mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
- added missing string length check.
This commit is contained in:
parent
fa057282df
commit
b87ee10a0a
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ int g_gameType;
|
|||
void AddSearchPath(TArray<FString>& searchpaths, const char* path)
|
||||
{
|
||||
auto fpath = M_GetNormalizedPath(path);
|
||||
if (fpath.Back() == '/') fpath.Truncate(fpath.Len() - 1);
|
||||
if (fpath.Len() > 1 && fpath.Back() == '/') fpath.Truncate(fpath.Len() - 1);
|
||||
if (DirExists(fpath))
|
||||
{
|
||||
if (searchpaths.Find(fpath) == searchpaths.Size())
|
||||
|
|
Loading…
Reference in a new issue