Fixed Rect extension test but still not statisfied
[sdlgit/SDL_perl.git] / lib / SDL / Game / Rect.pm
index f5b754a..7d443ae 100644 (file)
@@ -13,7 +13,7 @@ sub new {
     my $w = shift || 0;
     my $h = shift || 0;
 
-    my $self = \SDL::NewRect($x, $y, $w, $h);
+    my $self = SDL::Rect->new($x, $y, $w, $h);
     unless ($$self) {
         require Carp;
         Carp::croak SDL::GetError();