1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Fixed loading of flipped and duplicate images in animations

This commit is contained in:
Ivan Savenko
2024-07-16 19:51:00 +00:00
parent 73e052b1d0
commit 81c7c0ce24
5 changed files with 34 additions and 25 deletions

View File

@@ -49,3 +49,8 @@ bool ImageLocator::operator<(const ImageLocator & other) const
return verticalFlip < other.verticalFlip;
return horizontalFlip < other.horizontalFlip;
}
bool ImageLocator::empty() const
{
return !image.has_value() && !defFile.has_value();
}