Merge pull request #325 from edward-san/lookuplevelname_fix

LookupLevelName fix
This commit is contained in:
coelckers 2015-05-02 17:00:16 +02:00
commit 16d87f4a8c

View file

@ -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;
}