Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 13 / Farm / Farm.cpp
diff options
context:
space:
mode:
1 files changed, 1 insertions, 1 deletions
-rw-r--r--Sem. 13/Farm/Farm.cpp2
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;