SimpleGameEngine icon indicating copy to clipboard operation
SimpleGameEngine copied to clipboard

Vector2 `+=` typo

Open vittorioromeo opened this issue 10 years ago • 2 comments

Vector2& Vector2::operator+=(float amount) {
    x += amount;
    x += amount; // whoops.
    return *this;
}

vittorioromeo avatar May 07 '14 06:05 vittorioromeo

Thanks for spotting this! This will be fixed in a major sweeping change making SGE more "C++ish" overall (probably will be pushed in the next day or two).

On May 7, 2014, at 2:27 AM, Vittorio Romeo [email protected] wrote:

Vector2& Vector2::operator+=(float amount) { x += amount; x += amount; // whoops. return *this; } — Reply to this email directly or view it on GitHub.

C0deH4cker avatar May 08 '14 09:05 C0deH4cker

Apparently I closed this once I fixed it locally even though it never got pushed. Reopening as a reminder to finish my changes and push them.

C0deH4cker avatar Dec 13 '15 12:12 C0deH4cker