From e1affd530e8b296a72f647d434bb6ad5d81b53f0 Mon Sep 17 00:00:00 2001 From: Yaakov Date: Sat, 6 Jul 2013 21:28:24 +1000 Subject: [PATCH] Fixed compiler warning in npc_hunter: initialization of pointer of type 'CBaseEntity *' to null from a constant boolean expression [-Wbool-conversion] Building on Mac OS X 10.8.4, Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn) REDACTED/sp/src/game/server/episodic/npc_hunter.cpp:6356:9: warning: initialization of pointer of type 'CBaseEntity *' to null from a constant boolean expression [-Wbool-conversion] return false; ^~~~~ --- sp/src/game/server/episodic/npc_hunter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sp/src/game/server/episodic/npc_hunter.cpp b/sp/src/game/server/episodic/npc_hunter.cpp index fa9daff8..84d025d3 100644 --- a/sp/src/game/server/episodic/npc_hunter.cpp +++ b/sp/src/game/server/episodic/npc_hunter.cpp @@ -6347,13 +6347,13 @@ void CNPC_Hunter::FootFX( const Vector &origin ) CBaseEntity *CNPC_Hunter::GetEnemyVehicle() { if ( GetEnemy() == NULL ) - return false; + return NULL; CBaseCombatCharacter *pCCEnemy = GetEnemy()->MyCombatCharacterPointer(); if ( pCCEnemy != NULL ) return pCCEnemy->GetVehicleEntity(); - return false; + return NULL; }