[fixed]dimension2d operator+= multiplies instead of adding

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Bersi
Posts: 53
Joined: Tue Sep 04, 2007 8:23 pm

[fixed]dimension2d operator+= multiplies instead of adding

Post by Bersi »

This is how the operator works now (Irrlicht 1.5):

Code: Select all

dimension2d<T>& operator+=(const dimension2d<T>& other)
{
	Width *= other.Width;
	Height *= other.Height;
	return *this;
}

And this is how I expect it to work:

Code: Select all

dimension2d<T>& operator+=(const dimension2d<T>& other)
{
	Width += other.Width;
	Height += other.Height;
	return *this;
}
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

This is also fixed already in SVN.
Post Reply