mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- Improve the code readability in LookupLevelName.
This commit is contained in:
parent
4217c2ccd6
commit
353ace8be7
1 changed files with 2 additions and 1 deletions
|
@ -314,10 +314,11 @@ FString level_info_t::LookupLevelName()
|
|||
}
|
||||
else
|
||||
{
|
||||
// make sure nothing is stripped.
|
||||
checkstring[0] = '\0';
|
||||
}
|
||||
thename = strstr (lookedup, checkstring);
|
||||
if (thename == NULL)
|
||||
if (thename == NULL || thename == lookedup)
|
||||
{
|
||||
thename = lookedup;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue