From 9bf53607d3b305de7009f82633074411c04a3e6b Mon Sep 17 00:00:00 2001 From: remi-k Date: Thu, 9 Jul 2009 06:45:15 +0000 Subject: [PATCH] Fixed bug in sf.Window.GetSettings git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1158 4e206d99-4929-0410-ac5d-dfc041789085 --- python/src/Window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/Window.cpp b/python/src/Window.cpp index 7f32370e..6e16e654 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;