1.1 --- a/core/NextMap.cpp Wed Feb 13 22:25:15 2013 -0500
1.2 +++ b/core/NextMap.cpp Thu Feb 14 19:28:12 2013 -0500
1.3 @@ -31,6 +31,7 @@
1.4
1.5 #include "NextMap.h"
1.6 #include "Logger.h"
1.7 +#include "HalfLife2.h"
1.8 #include "sourcemm_api.h"
1.9 #include "sm_stringutil.h"
1.10 #include "sourcehook.h"
1.11 @@ -109,7 +110,7 @@
1.12
1.13 bool NextMapManager::SetNextMap(const char *map)
1.14 {
1.15 - if (!engine->IsMapValid(map))
1.16 + if (!g_HL2.IsMapValid(map))
1.17 {
1.18 return false;
1.19 }
1.20 @@ -133,7 +134,7 @@
1.21
1.22 const char *newmap = sm_nextmap.GetString();
1.23
1.24 - if (newmap[0] == 0 || !engine->IsMapValid(newmap))
1.25 + if (newmap[0] == 0 || !g_HL2.IsMapValid(newmap))
1.26 {
1.27 RETURN_META(MRES_IGNORED);
1.28 }