mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
code review
This commit is contained in:
@ -125,7 +125,7 @@ std::shared_ptr<IImage> MapTileStorage::find(size_t fileIndex, size_t rotationIn
|
||||
{
|
||||
const auto & animation = animations[fileIndex][rotationIndex];
|
||||
if (animation)
|
||||
return animation->getImage(imageIndex, groupIndex); // ask for group
|
||||
return animation->getImage(imageIndex, groupIndex);
|
||||
else
|
||||
return nullptr;
|
||||
}
|
||||
@ -134,7 +134,7 @@ int MapTileStorage::groupCount(size_t fileIndex, size_t rotationIndex, size_t im
|
||||
{
|
||||
const auto & animation = animations[fileIndex][rotationIndex];
|
||||
if (animation)
|
||||
for(int i = 0; true; i++)
|
||||
for(int i = 0;; i++)
|
||||
if(!animation->getImage(imageIndex, i, false))
|
||||
return i;
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user