mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user