Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 13
diff options
context:
space:
mode:
Commitd0939e748b048b2fa55278f63673753cc62ac5ea (patch)
Author
 Angel Dimitriev <angel_dimitriev@abv.bg>
2022-05-24 23:36:30 +0300
Committer
 GitHub <noreply@github.com>
2022-05-24 23:36:30 +0300
Files2087a7be64adc79336a5f56d2a0f1940379a7b65 /Sem. 13
Object-oriented_programming_FMI-d0939e748b048b2fa55278f63673753cc62ac5ea.tar
Object-oriented_programming_FMI-d0939e748b048b2fa55278f63673753cc62ac5ea.tar.gz
Object-oriented_programming_FMI-d0939e748b048b2fa55278f63673753cc62ac5ea.zip
Parent995635a1c9045446bfc3ab5f921e5af6bf01878a (diff)
Parentf23a37c8291e2f207e63a378b1454553ea1dea6b (diff)
Merge pull request #12 from TeoKarakashev/master
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;