diff options
author | Strangerke | 2016-04-21 20:23:46 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-10 09:54:21 +0200 |
commit | 4f4c25534c3e7597c67ced3c5d790380b8a1d787 (patch) | |
tree | b0c28d8267b1f696e2f53e87a251e1e00a7202d0 /engines | |
parent | 2409d89eb597587e78f7453ec2f09c10e9b01465 (diff) | |
download | scummvm-rg350-4f4c25534c3e7597c67ced3c5d790380b8a1d787.tar.gz scummvm-rg350-4f4c25534c3e7597c67ced3c5d790380b8a1d787.tar.bz2 scummvm-rg350-4f4c25534c3e7597c67ced3c5d790380b8a1d787.zip |
GNAP: Use a nullptr instead of 0 in deleteSurface()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/gnap/gnap.cpp | 2 | ||||
-rw-r--r-- | engines/gnap/scenes/scene14.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/engines/gnap/gnap.cpp b/engines/gnap/gnap.cpp index 7d097fdbdc..77039c0dcb 100644 --- a/engines/gnap/gnap.cpp +++ b/engines/gnap/gnap.cpp @@ -1029,7 +1029,7 @@ void GnapEngine::deleteSurface(Graphics::Surface **surface) { if (surface && *surface) { (*surface)->free(); delete *surface; - *surface = 0; + *surface = nullptr; } } diff --git a/engines/gnap/scenes/scene14.cpp b/engines/gnap/scenes/scene14.cpp index 46e3c6d6be..6fafc2d66a 100644 --- a/engines/gnap/scenes/scene14.cpp +++ b/engines/gnap/scenes/scene14.cpp @@ -165,7 +165,6 @@ void Scene14::run() { } _vm->gameUpdateTick(); - } if (_vm->_largeSprite) |