diff options
-rw-r--r-- | src/list.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/list.cpp b/src/list.cpp index e5ac9b8..ff38a68 100644 --- a/src/list.cpp +++ b/src/list.cpp @@ -57,7 +57,7 @@ void List::Behavior() if(C[i].getHealth()==0) { Location z = C[i].getLocation(); - R.push_back(Resource(main,"img/Cdead.png",z)); + R.push_back(Resource(*main,"img/Cdead.png",z)); C.erase(C.begin()+i); } |