Skip to content

BUG Fix: Vector2D operators#3

Open
eliaskanelis wants to merge 1 commit into
carlbirch:masterfrom
eliaskanelis:master
Open

BUG Fix: Vector2D operators#3
eliaskanelis wants to merge 1 commit into
carlbirch:masterfrom
eliaskanelis:master

Conversation

@eliaskanelis
Copy link
Copy Markdown

Hello,

Since I appreciate your Youtube series and really like to make games I wanted to contribute to your game engine. I found 4 bugs. Also this is my first pull request ever.

The "Vector2D& operator+(Vector2D& v1, const Vector2D& v2)"
should not modify v1, but should only return the result of v1+v2
Similar for Vector2D operator-, orerator* and operator/

The Vector2D operator-=, orerator*= and operator/= are correct.

Thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant