SimpleGameEngine
SimpleGameEngine copied to clipboard
Vector2 `+=` typo
Vector2& Vector2::operator+=(float amount) {
x += amount;
x += amount; // whoops.
return *this;
}
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.
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.