summaryrefslogtreecommitdiff
path: root/src/list.cpp
diff options
context:
space:
mode:
authortom <tombarrett@siu.edu>2017-02-12 08:42:55 -0600
committertom <tombarrett@siu.edu>2017-02-12 08:42:55 -0600
commit60bc5dcb19a983e8ae335ba89f860c59473303fb (patch)
tree6f232f9db0d71678ce593a765b88f4934976ed83 /src/list.cpp
parent1da46794f74ebd8f445fcd70cbe0420eadb648e4 (diff)
-added DNA combining, currently it just takes the average of the mother and father
-there maybe a random segfault, further investigation is needed
Diffstat (limited to 'src/list.cpp')
-rw-r--r--src/list.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/list.cpp b/src/list.cpp
index 0439278..4f2ddc4 100644
--- a/src/list.cpp
+++ b/src/list.cpp
@@ -43,7 +43,7 @@ void List::Behavior()
it->Behavior();
if(it->getPregnancyReady()){
- Dna D = it->getDNA();
+ Dna D = it->getChildDNA();
SDL_Rect Rect = it->getRect();
Rect.h = Rect.w = D.sizeMax / 5;
Creature X(main,Rect,D);