diff --git a/python/src/Window.cpp b/python/src/Window.cpp index 7f32370e2..6e16e654c 100644 --- a/python/src/Window.cpp +++ b/python/src/Window.cpp @@ -227,7 +227,7 @@ PySfWindow_GetSettings(PySfWindow *self) { PySfWindowSettings *Settings; Settings = GetNewPySfWindowSettings(); - Settings->obj = (sf::WindowSettings *)&self->obj->GetSettings(); + Settings->obj = new sf::WindowSettings(self->obj->GetSettings()); Settings->DepthBits = Settings->obj->DepthBits; Settings->StencilBits = Settings->obj->StencilBits; Settings->AntialiasingLevel = Settings->obj->AntialiasingLevel;