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 <xoddark@gmail.com>
This commit is contained in:
XoD
2011-12-21 23:52:32 +01:00
parent 61c9f6211b
commit 72fd4c6fc2

View File

@@ -3134,7 +3134,7 @@ idActor::Event_HasAnim
================ ================
*/ */
void idActor::Event_HasAnim( int channel, const char *animname ) { void idActor::Event_HasAnim( int channel, const char *animname ) {
if ( GetAnim( channel, animname ) != NULL ) { if ( GetAnim( channel, animname ) ) {
idThread::ReturnFloat( 1.0f ); idThread::ReturnFloat( 1.0f );
} else { } else {
idThread::ReturnFloat( 0.0f ); idThread::ReturnFloat( 0.0f );