Renaming Object to Shape (part 1)

This commit is contained in:
Godzil
2020-02-18 11:40:55 +00:00
parent df4ec9794a
commit 5a4f9f4dc4
12 changed files with 19 additions and 19 deletions

View File

@@ -17,7 +17,7 @@
Intersect::Intersect()
{
this->allocated = MIN_ALLOC;
this->list = (Intersection *)calloc(sizeof(Object *), MIN_ALLOC);
this->list = (Intersection *)calloc(sizeof(Shape *), MIN_ALLOC);
this->num = 0;
}
@@ -26,7 +26,7 @@ void Intersect::add(Intersection i)
if ((this->num + 1) < this->allocated)
{
this->allocated *= 2;
this->list = (Intersection *)realloc(this->list, sizeof(Object *) * this->allocated);
this->list = (Intersection *)realloc(this->list, sizeof(Shape *) * this->allocated);
}
this->list[this->num++] = i;
}