mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +00:00
Implement LayerImage::getCel() in terms of LayerImage::getCel() const.
This commit is contained in:
parent
3e8e3b397a
commit
a524fae9ba
@ -193,16 +193,7 @@ const Cel* LayerImage::getCel(int frame) const
|
||||
|
||||
Cel* LayerImage::getCel(int frame)
|
||||
{
|
||||
CelIterator it = getCelBegin();
|
||||
CelIterator end = getCelEnd();
|
||||
|
||||
for (; it != end; ++it) {
|
||||
Cel* cel = *it;
|
||||
if (cel->frame == frame)
|
||||
return cel;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return const_cast<Cel*>(static_cast<const LayerImage*>(this)->getCel(frame));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user