1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

client: render: fixed copy-past errror in genFromJson()

Signed-off-by: Maxim Korotkov <korotkov.maxim.s@gmail.com>
This commit is contained in:
Maxim Korotkov 2023-09-26 16:39:16 +03:00
parent 56061d116e
commit 59acf639da

View File

@ -138,7 +138,7 @@ ColorFilter ColorFilter::genFromJson(const JsonNode & entry)
r.a = entry["red"].Vector()[3].Float();
}
if (!entry["red"].isNull())
if (!entry["green"].isNull())
{
g.r = entry["green"].Vector()[0].Float();
g.g = entry["green"].Vector()[1].Float();
@ -146,7 +146,7 @@ ColorFilter ColorFilter::genFromJson(const JsonNode & entry)
g.a = entry["green"].Vector()[3].Float();
}
if (!entry["red"].isNull())
if (!entry["blue"].isNull())
{
b.r = entry["blue"].Vector()[0].Float();
b.g = entry["blue"].Vector()[1].Float();