More fixes, some clean up. For some reason blit is not work
[sdlgit/SDL_perl.git] / lib / SDL / Game / Rect.pm
index f5b754a..66d7baa 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 = $class->SUPER::new($x, $y, $w, $h);
     unless ($$self) {
         require Carp;
         Carp::croak SDL::GetError();