From e7cac5098145d75a680e35787f7c504caf16965b Mon Sep 17 00:00:00 2001 From: tom Date: Mon, 2 May 2016 22:02:25 -0500 Subject: fixed issue, was related to erasing nodes within vectors while using iterators --- inc/list.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'inc/list.hpp') 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 getNear(Creature C); + list 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 R; - vector C; + list R; + list C; }; #endif -- cgit v1.2.3