summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/creature.cpp1
-rw-r--r--src/list.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/creature.cpp b/src/creature.cpp
index 1cd0a52..dc5a307 100644
--- a/src/creature.cpp
+++ b/src/creature.cpp
@@ -19,6 +19,7 @@ Creature::Creature(Window M, SDL_Rect R, Dna D)
able = true;
pregnancyReady = false;
pregnate = false;
+ hasTarget = false;
}
void Creature::Behavior()
diff --git a/src/list.cpp b/src/list.cpp
index 4f2ddc4..68a71c9 100644
--- a/src/list.cpp
+++ b/src/list.cpp
@@ -84,7 +84,7 @@ std::vector<Entity*> List::getNear(Creature nC)
continue;
else if( nC.getBestSense() > Distance(nC.getRect(),it->getRect()) )
N.push_back(&(*it));
-
+
return N;
}