X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=svvm_cmds.c;h=9b1492d1899d979dd420ce0eae8ac58dbd3a54c4;hb=d48093d3ac481d32bd6eabd6c36e3a026779ecde;hp=d77c1f0057d0a4e1b95e1cd7423662590b2ff078;hpb=56ea125a48ae3d8fd628559014e68ee83dc5b324;p=xonotic%2Fdarkplaces.git diff --git a/svvm_cmds.c b/svvm_cmds.c index d77c1f00..9b1492d1 100644 --- a/svvm_cmds.c +++ b/svvm_cmds.c @@ -862,7 +862,7 @@ void PF_lightstyle (void) style = PRVM_G_FLOAT(OFS_PARM0); val = PRVM_G_STRING(OFS_PARM1); - if( (unsigned) style >= 64 ) { + if( (unsigned) style >= MAX_LIGHTSTYLES ) { PRVM_ERROR( "PF_lightstyle: style: %i >= 64", style ); }