From a66e87ab484b5f96700e2b1d905c451f7947428e Mon Sep 17 00:00:00 2001 From: "arthur.jamet" Date: Mon, 31 May 2021 22:08:35 +0200 Subject: [PATCH] avoid using auto variables for windows compilation (rectangle) --- lib/Ray/sources/Drawables/2D/Rectangle.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/Ray/sources/Drawables/2D/Rectangle.cpp b/lib/Ray/sources/Drawables/2D/Rectangle.cpp index 4703793e..271f615b 100644 --- a/lib/Ray/sources/Drawables/2D/Rectangle.cpp +++ b/lib/Ray/sources/Drawables/2D/Rectangle.cpp @@ -52,9 +52,12 @@ namespace RAY::Drawables::Drawables2D Rectangle::operator ::Rectangle () const { - return (::Rectangle){ - this->_position.x, this->_position.y, - this->_dimensions.x, this->_dimensions.y - }; + ::Rectangle rect; + + rect.x = this->_position.x; + rect.y = this->_position.y; + rect.width = this->_dimensions.x; + rect.height = this->_dimensions.y; + return rect; } } \ No newline at end of file