From 19915d674c44ec3a554e688d967fc6feedcb5708 Mon Sep 17 00:00:00 2001 From: robfram Date: Tue, 9 Jan 2018 21:49:35 +0100 Subject: Fix bad color to HTML conversion. Alpha channel was added befor RGB. --- core/color.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/color.cpp') diff --git a/core/color.cpp b/core/color.cpp index 7278b5c4ee..36afe5e004 100644 --- a/core/color.cpp +++ b/core/color.cpp @@ -396,7 +396,7 @@ String Color::to_html(bool p_alpha) const { txt += _to_hex(g); txt += _to_hex(b); if (p_alpha) - txt = _to_hex(a) + txt; + txt += _to_hex(a); return txt; } -- cgit v1.2.3