From f3f630142a8ca57afe74ea4cdcb0e77814649b59 Mon Sep 17 00:00:00 2001 From: remi-k Date: Tue, 24 Nov 2009 11:25:46 +0000 Subject: [PATCH] Minor fix in sf.Window git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1284 4e206d99-4929-0410-ac5d-dfc041789085 --- python/src/Window.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/src/Window.cpp b/python/src/Window.cpp index 6e16e654..a15c735e 100644 --- a/python/src/Window.cpp +++ b/python/src/Window.cpp @@ -151,7 +151,9 @@ PySfWindow_init(PySfWindow *self, PyObject *args, PyObject *kwds) PySfWindowSettings *Params; if (args != NULL) - { + { + if (PyTuple_Size(args) == 0) + return 0; if (PyArg_ParseTuple(args, "l|O!:Window.__new__", &Handle, &PySfWindowSettingsType, &Params)) return 0; PyErr_Clear();