pmc/rectangle.cc
changeset 54 c064ce9f40f5
parent 46 4b9e1ac40246
child 65 76514757b0d6
--- a/pmc/rectangle.cc
+++ b/pmc/rectangle.cc
@@ -19,6 +19,8 @@
     P[1] = new Vector (0, 100);
     P[2] = new Vector (100, 100);
     P[3] = new Vector (0, 100);
+
+    refCounter++;
 }
 
 Rectangle::Rectangle (Surface * s, Vector & p1, Vector & p2, Vector & p3, Vector & p4)
@@ -32,6 +34,8 @@
     P[1] = new Vector (p2);
     P[2] = new Vector (p3);
     P[3] = new Vector (p4);
+
+    refCounter++;
 }
 
 Rectangle::Rectangle (Surface * s, Vector p[4])
@@ -44,6 +48,13 @@
     for (int i = 0; i < 4; i++) {
         P[i] = new Vector (p[i]);
     }
+
+    refCounter++;
+}
+
+Rectangle::Rectangle (const Rectangle & copy)
+{
+    fprintf (stderr, "Copy Constructor in Rectangle disabled...\n");
 }
 
 Rectangle::~Rectangle ()