Skip to content

Commit 56e40e0

Browse files
committed
Fix Rectangle initialization
1 parent de010bc commit 56e40e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/Rectangle.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Rectangle : public ::Rectangle {
3737
}
3838

3939
Rectangle(float x, float y, float width, float height) : ::Rectangle{x, y, width, height} {}
40-
Rectangle(float x, float y, float width) : ::Rectangle{x, y, width, height} {}
40+
Rectangle(float x, float y, float width) : ::Rectangle{x, y, width, 0} {}
4141
Rectangle(float x, float y) : ::Rectangle{x, y, 0, 0} {}
4242
Rectangle(float x) : ::Rectangle{x, 0, 0, 0} {}
4343
Rectangle() : ::Rectangle{0, 0, 0, 0} {}

0 commit comments

Comments
 (0)