Merge pull request #484 from minggo/master

fixed #689: the width & height of CCRect should big or equal to 0
This commit is contained in:
minggo 2011-08-22 19:50:23 -07:00
commit 3487b074ea
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ CCRect::CCRect(void)
CCRect::CCRect(float x, float y, float width, float height)
{
// Only support that, the width and height > 0
assert(width > 0 && height > 0);
assert(width >= 0 && height >= 0);
origin.x = x;
origin.y = y;