0
0
Fork 0
mirror of https://github.com/dhewm/dhewm3-sdk.git synced 2025-04-16 14:21:40 +00:00

C++98 fix: nullptr -> NULL

This commit is contained in:
Daniel Gibson 2021-12-20 03:57:36 +01:00
parent e0fa7ab799
commit 75fe79db3e
2 changed files with 2 additions and 2 deletions
d3xp/physics
game/physics

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
* 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 */
if ( clipModel != nullptr ) {
if ( clipModel != NULL ) {
clipModel->SetPosition( clipModel->GetOrigin(), mat3_identity );
}
}

View file

@ -2151,7 +2151,7 @@ void idPhysics_Player::Restore( idRestoreGame *savefile ) {
* 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
* 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 );
}
//rev 2021 Dhewm 3 1.5.1 updates end