diff options
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | Sem. 13/Farm/Farm.cpp | 2 |
diff --git a/Sem. 13/Farm/Farm.cpp b/Sem. 13/Farm/Farm.cpp index 1328e95..73cd419 100644 --- a/Sem. 13/Farm/Farm.cpp +++ b/Sem. 13/Farm/Farm.cpp @@ -8,7 +8,7 @@ void Farm::free() }
void Farm::copyFrom(const Farm& other)
{
- animals = new Animal * [other.animalsCount];
+ animals = new Animal * [other.capacity];
animalsCount = other.animalsCount;
capacity = other.capacity;
|
