diff options
author | Andrey Nazarov <skuller@skuller.net> | 2010-03-03 15:32:28 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2010-03-03 15:32:28 +0000 |
commit | 25de275d0db688460a0f3642ba3c72ab44af3e96 (patch) | |
tree | 9e3f5c61569382bc0cb03089d4165d00a0f45af2 | |
parent | d46e8aad3aadbfea1a979ddd50c73e9e7ae80d9e (diff) |
Fixed off-by-one error in V_AddLightStyle.
-rw-r--r-- | source/cl_view.c | 2 |
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]; |