mirror of
https://github.com/TTimo/doom3.gpl.git
synced 2026-03-19 16:39:24 +01:00
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:
@@ -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 );
|
||||||
|
|||||||
Reference in New Issue
Block a user