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 a01768525a
commit 5689888682

View File

@ -1180,6 +1180,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)