summaryrefslogtreecommitdiff
path: root/source/cl_fx.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/cl_fx.c')
-rw-r--r--source/cl_fx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/cl_fx.c b/source/cl_fx.c
index 2723964..f959ff9 100644
--- a/source/cl_fx.c
+++ b/source/cl_fx.c
@@ -82,14 +82,15 @@ void CL_RunLightStyles( void ) {
void CL_SetLightstyle( int index ) {
char *s;
- int length, i;
+ size_t length;
+ int i;
clightstyle_t *dest;
s = cl.configstrings[index + CS_LIGHTS];
length = strlen( s );
if( length >= MAX_QPATH )
- Com_Error( ERR_DROP, "CL_SetLightstyle: length=%i", length );
+ Com_Error( ERR_DROP, "CL_SetLightstyle: bad length" );
dest = &cl_lightstyles[index];
dest->length = length;