diff --git a/src/ui/HUD.cc b/src/ui/HUD.cc index 599eb7bb4b49be6f712c1f09d73ff3626d724993..7774207daf77e01e5d1d8f904145f25cb8f3955b 100644 --- a/src/ui/HUD.cc +++ b/src/ui/HUD.cc @@ -1363,14 +1363,14 @@ void HUD::copyImage(UASInterface* uas) QImage temp_im = u->getImage(); if (temp_im.byteCount() > 0) { this->glImage = temp_im; - } - // Save to directory if logging is enabled - if (imageLoggingEnabled) - { - u->getImage().save(QString("%1/%2.png").arg(imageLogDirectory).arg(imageLogCounter)); - imageLogCounter++; - } + // Save to directory if logging is enabled + if (imageLoggingEnabled) + { + temp_im.save(QString("%1/%2.png").arg(imageLogDirectory).arg(imageLogCounter)); + imageLogCounter++; + } + } } }