Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 13 / Farm
diff options
context:
space:
mode:
Commitf23a37c8291e2f207e63a378b1454553ea1dea6b (patch)
Author
 Teodor Karakashev <teodor.karakashev@gmail.com>
2022-05-24 22:58:17 +0300
Committer
 GitHub <noreply@github.com>
2022-05-24 22:58:17 +0300
Files2087a7be64adc79336a5f56d2a0f1940379a7b65 /Sem. 13/Farm
Object-oriented_programming_FMI-f23a37c8291e2f207e63a378b1454553ea1dea6b.tar
Object-oriented_programming_FMI-f23a37c8291e2f207e63a378b1454553ea1dea6b.tar.gz
Object-oriented_programming_FMI-f23a37c8291e2f207e63a378b1454553ea1dea6b.zip
Parent995635a1c9045446bfc3ab5f921e5af6bf01878a (diff)
Update Farm.cpp
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;