diff options
author | whitertandrek | 2018-03-13 22:39:47 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-04-07 11:33:13 +0200 |
commit | b643af27c3f259afba872332c29c487021b3093b (patch) | |
tree | 26aa709aeb77eda63abd295c3eb6023fa6b9e185 /engines | |
parent | 61e262be8983d97b1c59bf0b45a868ecd558a11c (diff) | |
download | scummvm-rg350-b643af27c3f259afba872332c29c487021b3093b.tar.gz scummvm-rg350-b643af27c3f259afba872332c29c487021b3093b.tar.bz2 scummvm-rg350-b643af27c3f259afba872332c29c487021b3093b.zip |
PLUMBERS: Remove unnecessary conditional
delete perfoms the check anyway
Diffstat (limited to 'engines')
-rw-r--r-- | engines/plumbers/plumbers.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/plumbers/plumbers.cpp b/engines/plumbers/plumbers.cpp index 9904acb33a..62e994ec54 100644 --- a/engines/plumbers/plumbers.cpp +++ b/engines/plumbers/plumbers.cpp @@ -182,8 +182,7 @@ void PlumbersGame::loadImage(const Common::String &dirname, const Common::String if (!file->open(name)) error("unable to load image %s", name.c_str()); - if (_image) - delete _image; + delete _image; _image = new Image::BitmapDecoder(); _image->loadStream(*file); |