From 1a6835e0424246bfdf989124ca0ad423f5e735ba Mon Sep 17 00:00:00 2001 From: groogy Date: Thu, 25 Nov 2010 23:05:37 +0000 Subject: [PATCH] Some changes because of a mistake made on my behalf. I forgot to write rb_funcall2 but I used instead rb_funcall instead. git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1718 4e206d99-4929-0410-ac5d-dfc041789085 --- bindings/ruby/sfml-window/window/Window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/ruby/sfml-window/window/Window.cpp b/bindings/ruby/sfml-window/window/Window.cpp index a892d9205..2c812581d 100644 --- a/bindings/ruby/sfml-window/window/Window.cpp +++ b/bindings/ruby/sfml-window/window/Window.cpp @@ -596,9 +596,9 @@ static VALUE Window_WaitEvent( VALUE self ) static VALUE Window_Initialize( int argc, VALUE *args, VALUE self ) { - if( args > 0 ) + if( argc > 0 ) { - rb_funcall( self, rb_intern( "create" ), argc, args ); + rb_funcall2( self, rb_intern( "create" ), argc, args ); } return self; }