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:
parent
56061d116e
commit
59acf639da
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user