Remove usage of C++11 nullptr

This commit is contained in:
Daniel Gibson 2022-05-17 03:12:55 +02:00
parent 2752ffd0bb
commit b3bc2cb8a9
2 changed files with 2 additions and 2 deletions

View file

@ -1637,7 +1637,7 @@ void idPhysics_Player::Restore( idRestoreGame *savefile ) {
* Resetting the axis to mat3_identity when restoring a savegame works around that issue * Resetting the axis to mat3_identity when restoring a savegame works around that issue
* and makes sure players can go on playing if their savegame was "corrupted" by saving * and makes sure players can go on playing if their savegame was "corrupted" by saving
* while idPush was active. See https://github.com/dhewm/dhewm3/issues/328 for more details */ * while idPush was active. See https://github.com/dhewm/dhewm3/issues/328 for more details */
if ( clipModel != nullptr ) { if ( clipModel != NULL ) {
clipModel->SetPosition( clipModel->GetOrigin(), mat3_identity ); clipModel->SetPosition( clipModel->GetOrigin(), mat3_identity );
} }
} }

View file

@ -1637,7 +1637,7 @@ void idPhysics_Player::Restore( idRestoreGame *savefile ) {
* Resetting the axis to mat3_identity when restoring a savegame works around that issue * Resetting the axis to mat3_identity when restoring a savegame works around that issue
* and makes sure players can go on playing if their savegame was "corrupted" by saving * and makes sure players can go on playing if their savegame was "corrupted" by saving
* while idPush was active. See https://github.com/dhewm/dhewm3/issues/328 for more details */ * while idPush was active. See https://github.com/dhewm/dhewm3/issues/328 for more details */
if ( clipModel != nullptr ) { if ( clipModel != NULL ) {
clipModel->SetPosition( clipModel->GetOrigin(), mat3_identity ); clipModel->SetPosition( clipModel->GetOrigin(), mat3_identity );
} }
} }