mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Fix h3 bug: icons of View Earth and View Air are swapped
This commit is contained in:
@ -15,15 +15,17 @@
|
||||
|
||||
#include "../../lib/json/JsonNode.h"
|
||||
|
||||
|
||||
ImageLocator::ImageLocator(const JsonNode & config)
|
||||
: image(ImagePath::fromJson(config["file"]))
|
||||
, defFile(AnimationPath::fromJson(config["defFile"]))
|
||||
, defFrame(config["defFrame"].Integer())
|
||||
: defFrame(config["defFrame"].Integer())
|
||||
, defGroup(config["defGroup"].Integer())
|
||||
, verticalFlip(config["verticalFlip"].Bool())
|
||||
, horizontalFlip(config["horizontalFlip"].Bool())
|
||||
{
|
||||
if(!config["file"].isNull())
|
||||
image = ImagePath::fromJson(config["file"]);
|
||||
|
||||
if(!config["defFile"].isNull())
|
||||
defFile = AnimationPath::fromJson(config["defFile"]);
|
||||
}
|
||||
|
||||
ImageLocator::ImageLocator(const ImagePath & path)
|
||||
|
Reference in New Issue
Block a user