summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/g_cmds.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 2d4a2344..1a749621 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -2834,8 +2834,11 @@ void Cmd_ListMaps_f( gentity_t *ent )
trap_Argv( 2, lp, sizeof( lp ) );
page = atoi( lp );
}
+
if( page > 0 )
page--;
+ else if( page < 0 )
+ page = 0;
}
numFiles = trap_FS_GetFileList( "maps/", ".bsp",