mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
Merge pull request #325 from edward-san/lookuplevelname_fix
LookupLevelName fix
This commit is contained in:
commit
16d87f4a8c
1 changed files with 6 additions and 1 deletions
|
@ -312,8 +312,13 @@ FString level_info_t::LookupLevelName()
|
|||
{
|
||||
mysnprintf (checkstring, countof(checkstring), "%d: ", atoi(&MapName[5]));
|
||||
}
|
||||
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