From 202437538f97e192e055f1d054d8a6bd2a4a294e Mon Sep 17 00:00:00 2001 From: div0 Date: Sun, 3 Dec 2006 10:17:29 +0000 Subject: [PATCH] fixed map list position off-by-one git-svn-id: svn://svn.icculus.org/nexuiz/trunk@1966 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/g_world.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/qcsrc/server/g_world.qc b/data/qcsrc/server/g_world.qc index e0dff5c74..e92fbdb7b 100644 --- a/data/qcsrc/server/g_world.qc +++ b/data/qcsrc/server/g_world.qc @@ -606,9 +606,9 @@ void() Maplist_Init = cvar_set("g_maplist", temp = cvar_string("g_maplist_defaultlist")); Map_Count = tokenize(temp); } - Map_Current = bound(0, GetMaplistPosition(), Map_Count); if(Map_Count == 0) error("empty maplist, cannot select a new map"); + Map_Current = bound(0, GetMaplistPosition(), Map_Count - 1); } void() GotoNextMap = -- 2.39.2