mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Added an extra assert macro to GuiComponent.
This commit is contained in:
parent
4b1138ebc7
commit
336ff3ea7c
|
@ -127,7 +127,11 @@ public:
|
|||
void sortChildren();
|
||||
const unsigned int getChildCount() const { return static_cast<int>(mChildren.size()); }
|
||||
const int getChildIndex() const;
|
||||
GuiComponent* getChild(unsigned int i) const { return mChildren.at(i); }
|
||||
GuiComponent* getChild(unsigned int i) const
|
||||
{
|
||||
assert(mChildren.size() >= i);
|
||||
return mChildren.at(i);
|
||||
}
|
||||
|
||||
// Animation will be automatically deleted when it completes or is stopped.
|
||||
const bool isAnimationPlaying(unsigned char slot) const
|
||||
|
|
Loading…
Reference in a new issue