From 72fd4c6fc20d7fe8a3410767d16441c7eb576467 Mon Sep 17 00:00:00 2001 From: XoD Date: Wed, 21 Dec 2011 23:52:32 +0100 Subject: [PATCH] Remove comparison from a int to NULL In Event_HasAnim the result of GetAnim is compared to a pointer, GetAnim return a int. Fix a Warning: pointer-arith Signed-off-by: XoD --- neo/d3xp/Actor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/d3xp/Actor.cpp b/neo/d3xp/Actor.cpp index 6392cd9..f130424 100644 --- a/neo/d3xp/Actor.cpp +++ b/neo/d3xp/Actor.cpp @@ -3134,7 +3134,7 @@ idActor::Event_HasAnim ================ */ void idActor::Event_HasAnim( int channel, const char *animname ) { - if ( GetAnim( channel, animname ) != NULL ) { + if ( GetAnim( channel, animname ) ) { idThread::ReturnFloat( 1.0f ); } else { idThread::ReturnFloat( 0.0f );