diff --git a/src/commands/cmd_flip.cpp b/src/commands/cmd_flip.cpp index 62b8b6f0d..0ccd9f800 100644 --- a/src/commands/cmd_flip.cpp +++ b/src/commands/cmd_flip.cpp @@ -100,13 +100,12 @@ void FlipCommand::execute(Context* context) image = GetImage2(sprite, &x, &y, NULL); if (!image) - return; - - // mask is empty? - if (sprite->mask->is_empty()) { - // so we flip the entire image - x1 = 0; - y1 = 0; + return; + // mask is empty? + if (sprite->mask->is_empty()) { + // so we flip the entire image + x1 = 0; + y1 = 0; x2 = image->w-1; y2 = image->h-1; }