From a26827adcc68d5fdf1b49e871e1a43b25260aa60 Mon Sep 17 00:00:00 2001 From: groogy Date: Mon, 28 Feb 2011 22:15:52 +0000 Subject: [PATCH] git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1803 4e206d99-4929-0410-ac5d-dfc041789085 --- bindings/ruby/sfml-graphics/graphics/Drawable.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bindings/ruby/sfml-graphics/graphics/Drawable.cpp b/bindings/ruby/sfml-graphics/graphics/Drawable.cpp index 96b2bc7d..f84efe80 100644 --- a/bindings/ruby/sfml-graphics/graphics/Drawable.cpp +++ b/bindings/ruby/sfml-graphics/graphics/Drawable.cpp @@ -550,7 +550,8 @@ static VALUE Drawable_Allocate( VALUE aKlass ) static VALUE Drawable_Included( VALUE aModule, VALUE aBase ) { - rb_define_singleton_method( aBase, "allocate", Drawable_Allocate, 0 ); + //rb_define_singleton_method( aBase, "allocate", Drawable_Allocate, 0 ); + rb_define_alloc_func( aBase, Drawable_Allocate ); return Qnil; }