diff options
author | Paul Gilbert | 2019-01-04 17:12:30 -0800 |
---|---|---|
committer | Paul Gilbert | 2019-01-04 17:12:30 -0800 |
commit | 18768f164a35d1d0d25da20f55c70f2c0d306b47 (patch) | |
tree | 8563801e8f533c76b1cd44f3607053b42de0dcb5 /engines/glk/picture.cpp | |
parent | c41c6f33d53c896c35cda6ac761cdedf896d646c (diff) | |
download | scummvm-rg350-18768f164a35d1d0d25da20f55c70f2c0d306b47.tar.gz scummvm-rg350-18768f164a35d1d0d25da20f55c70f2c0d306b47.tar.bz2 scummvm-rg350-18768f164a35d1d0d25da20f55c70f2c0d306b47.zip |
GLK: FROTZ: Cleanup of image drawing code
Diffstat (limited to 'engines/glk/picture.cpp')
-rw-r--r-- | engines/glk/picture.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/glk/picture.cpp b/engines/glk/picture.cpp index c7c8f70b6d..2cebcb2780 100644 --- a/engines/glk/picture.cpp +++ b/engines/glk/picture.cpp @@ -32,8 +32,10 @@ namespace Glk { void Pictures::clear() { for (uint idx = 0; idx < _store.size(); ++idx) { - _store[idx]._picture->decrement(); - _store[idx]._scaled->decrement(); + if (_store[idx]._picture) + _store[idx]._picture->decrement(); + if (_store[idx]._scaled) + _store[idx]._scaled->decrement(); } _store.clear(); |