summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 5f7ad73f..e1c370c3 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -20,7 +20,6 @@
*/
#include "being.h"
-#include <algorithm>
#include <cassert>
#include "animatedsprite.h"
@@ -96,7 +95,7 @@ Being::Being(int id, int job, Map *map):
Being::~Being()
{
- std::for_each(mSprites.begin(), mSprites.end(), make_dtor(mSprites));
+ delete_all(mSprites);
clearPath();
setMap(NULL);