From a4893a89903b2b4584bab6162eb1f2c58bde4d53 Mon Sep 17 00:00:00 2001 From: Steve Cotton Date: Mon, 22 Jul 2019 21:58:37 +0200 Subject: [PATCH] Fix units fading in or out affecting other units of the same type --- src/display.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/display.cpp b/src/display.cpp index 51a6e23c1904..293d8dc4790b 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -1551,6 +1551,7 @@ void display::render_image(int x, int y, const display::drawing_layer drawing_la //} else if(alpha != 1.0 && blendto != 0) { // surf.assign(blend_surface(surf,1.0-alpha,blendto)); } else if(alpha != ftofxp(1.0)) { + surf = surf.clone(); adjust_surface_alpha(surf, alpha); }