diff options
author | tom <tom@ground-control> | 2016-05-02 16:29:28 -0500 |
---|---|---|
committer | tom <tom@ground-control> | 2016-05-02 16:29:28 -0500 |
commit | eac63735fb84ba3b59b5fc887d959e1492ef246d (patch) | |
tree | f5feb17bb2cf4e909b349c154a74a396e3b7fa97 /src/list.cpp | |
parent | 084d556f831832c1ca15d1e7cd52944815d9beea (diff) |
spring cleaning
Diffstat (limited to 'src/list.cpp')
-rw-r--r-- | src/list.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/list.cpp b/src/list.cpp index 464ac48..e2724f3 100644 --- a/src/list.cpp +++ b/src/list.cpp @@ -1,6 +1,6 @@ #include "list.hpp" -List::List(Window m) //Constructor +List::List(Window m) { int i; @@ -20,12 +20,10 @@ List::List(Window m) //Constructor } void List::Place() -{ - //places each creature on window +{ for(vector<Creature>::iterator it = C.begin(); it!=C.end(); it++) it->Place(); - for(vector<Resource>::iterator it = R.begin(); it!=R.end(); it++){ if(it->getAmount()<=0) R.erase(it--); |