mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-03 20:40:35 +00:00
check wether or not mBitmapArrayRects.empty(). not simply if size()
(cherry picked from commit fea81a4d57edff9c05bf397a5b21d8422838cc1c)
This commit is contained in:
parent
f1d42d3867
commit
d6480cb63c
7 changed files with 26 additions and 26 deletions
|
|
@ -524,7 +524,7 @@ void GuiControlProfile::setChildrenProfile(GuiControlProfile *prof)
|
|||
|
||||
RectI GuiControlProfile::getBitmapArrayRect(U32 i)
|
||||
{
|
||||
if(!mBitmapArrayRects.size())
|
||||
if(mBitmapArrayRects.empty())
|
||||
constructBitmapArray();
|
||||
|
||||
if( i >= mBitmapArrayRects.size())
|
||||
|
|
@ -535,7 +535,7 @@ RectI GuiControlProfile::getBitmapArrayRect(U32 i)
|
|||
|
||||
S32 GuiControlProfile::constructBitmapArray()
|
||||
{
|
||||
if(mBitmapArrayRects.size())
|
||||
if(!mBitmapArrayRects.empty())
|
||||
return mBitmapArrayRects.size();
|
||||
|
||||
if( mBitmap.isNull() )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue