summaryrefslogtreecommitdiff
path: root/source/cl_view.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/cl_view.c')
-rw-r--r--source/cl_view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cl_view.c b/source/cl_view.c
index 3f23320..03c4293 100644
--- a/source/cl_view.c
+++ b/source/cl_view.c
@@ -135,7 +135,7 @@ V_AddLightStyle
void V_AddLightStyle (int style, vec4_t value) {
lightstyle_t *ls;
- if (style < 0 || style > MAX_LIGHTSTYLES)
+ if (style < 0 || style >= MAX_LIGHTSTYLES)
Com_Error (ERR_DROP, "Bad light style %i", style);
ls = &r_lightstyles[style];