Skip to content

Commit

Permalink
JK2: Fix incorrect Icarus Q3_GetString() animation name validation
Browse files Browse the repository at this point in the history
This breaks the build in clang (llvm). Equivalent to commit 973e9c2
in JASP.

Signed-off-by: Simon McVittie <smcv@debian.org>
  • Loading branch information
smcv committed Mar 12, 2016
1 parent 0991ef4 commit a453c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codeJK2/game/Q3_Interface.cpp
Expand Up @@ -8613,7 +8613,7 @@ static int Q3_GetString( int entID, int type, const char *name, char **value )
case SET_ANIM_BOTH:
*value = (char *) Q3_GetAnimBoth( ent );

if ( VALIDSTRING( value ) == false )
if ( VALIDSTRING( *value ) == false )
return false;

break;
Expand Down

0 comments on commit a453c32

Please sign in to comment.