Fixed IsMapValid passing blank string to engine's IsMapValid which crashes some games.

This commit is contained in:
Nicholas Hastings 2013-03-21 01:22:08 -04:00
parent 08d83eb8da
commit 70e29d4f20

View File

@ -1243,6 +1243,9 @@ static bool ResolveFuzzyMapName(const char *fuzzyName, char *outFullname, int si
bool CHalfLife2::IsMapValid(const char *map)
{
if (!map || !map[0])
return false;
bool ret = engine->IsMapValid(map);
#if SOURCE_ENGINE >= SE_LEFT4DEAD
if (!ret)