about summary refs log tree commit diff
path: root/src/game/client/menu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/menu.cpp')
-rw-r--r--src/game/client/menu.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/client/menu.cpp b/src/game/client/menu.cpp
index 1f9857a8..9046d44a 100644
--- a/src/game/client/menu.cpp
+++ b/src/game/client/menu.cpp
@@ -867,6 +867,9 @@ static int settings_video_render_select_mode()
 	for (int i = 0; i < 7; i++)
 	{
 		int index = i + scroll_index;
+		if(index >= num_modes)
+			break;
+			
 		//key_thing key = keys[i + scroll_index];
 		int depth = modes[index].red+modes[index].green+modes[index].blue;
 		if(depth < 16)