summaryrefslogtreecommitdiff
path: root/inc/list.hpp
diff options
context:
space:
mode:
authortom <tom@ground-control>2016-05-02 22:02:25 -0500
committertom <tom@ground-control>2016-05-02 22:02:25 -0500
commite7cac5098145d75a680e35787f7c504caf16965b (patch)
tree8256bd87b35c5aadcef0e5bd16030a4196cbbc7e /inc/list.hpp
parent8d9ad3eb74bc0dfc647abf03b7b99ed16f2a9115 (diff)
fixed issue, was related to erasing nodes within vectors while using iterators
Diffstat (limited to 'inc/list.hpp')
-rw-r--r--inc/list.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/list.hpp b/inc/list.hpp
index 9d05fec..3ad8477 100644
--- a/inc/list.hpp
+++ b/inc/list.hpp
@@ -13,13 +13,13 @@ class List
void Behavior();
void Place();
double Distance(Location A, Location B){return sqrt(pow(A.x-B.x,2)+pow(A.y-B.y,2));};
- vector<Entity*> getNear(Creature C);
+ list<Entity*> getNear(Creature C);
private:
//vectors containing objects of each type
Window main = Window("no");//will be needed for adding R's and C's after constructor.
- vector<Resource> R;
- vector<Creature> C;
+ list<Resource> R;
+ list<Creature> C;
};
#endif