- fixed many compilation errors with GCC and Clang

This commit is contained in:
alexey.lysiuk 2019-01-07 10:14:52 +02:00 committed by Christoph Oelckers
commit 11958b713e
25 changed files with 110 additions and 110 deletions

View file

@ -351,7 +351,7 @@ AActor *DBot::Choose_Mate ()
if (mate)
{
if (mate->health <= 0)
mate = NULL;
mate = nullptr;
else
last_mate = mate;
}
@ -361,7 +361,7 @@ AActor *DBot::Choose_Mate ()
//Check old_mates status.
if (last_mate)
if (last_mate->health <= 0)
last_mate = NULL;
last_mate = nullptr;
target = NULL;
closest_dist = FLT_MAX;