diff -r a05d763d049f -r 42e367aa4a00 core/NextMap.cpp --- a/core/NextMap.cpp Wed Feb 13 22:25:15 2013 -0500 +++ b/core/NextMap.cpp Thu Feb 14 19:28:12 2013 -0500 @@ -31,6 +31,7 @@ #include "NextMap.h" #include "Logger.h" +#include "HalfLife2.h" #include "sourcemm_api.h" #include "sm_stringutil.h" #include "sourcehook.h" @@ -109,7 +110,7 @@ bool NextMapManager::SetNextMap(const char *map) { - if (!engine->IsMapValid(map)) + if (!g_HL2.IsMapValid(map)) { return false; } @@ -133,7 +134,7 @@ const char *newmap = sm_nextmap.GetString(); - if (newmap[0] == 0 || !engine->IsMapValid(newmap)) + if (newmap[0] == 0 || !g_HL2.IsMapValid(newmap)) { RETURN_META(MRES_IGNORED); }