summaryrefslogtreecommitdiff
path: root/src/game/g_admin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r--src/game/g_admin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index 2d6aeaba..24330aa2 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -2044,7 +2044,7 @@ qboolean G_admin_changemap( gentity_t *ent )
trap_Argv( 1, map, sizeof( map ) );
- if( !trap_FS_FOpenFile( va( "maps/%s.bsp", map ), NULL, FS_READ ) )
+ if( !G_MapExists( map ) )
{
ADMP( va( "^3changemap: ^7invalid map name '%s'\n", map ) );
return qfalse;