From e41371d866d403260f713a06c877d24eb43ad7b3 Mon Sep 17 00:00:00 2001 From: Bjørn Date: Sun, 12 Apr 2009 15:40:37 +0200 Subject: Removed a wrong ParticleEngine::clear call This line must have gotten there during a merge, since the clearing of the particles was supposed to only happen after the player's map is reset (see 208d5a6c0523079ea1b2a2e69fd3e76804ada037). This fixes crashes on changing maps. Thanks to Bernd Wachter for finding the problem and providing useful valgrind output. --- src/engine.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/engine.cpp') diff --git a/src/engine.cpp b/src/engine.cpp index 7ad2fa38..555c3f17 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -57,7 +57,6 @@ bool Engine::changeMap(const std::string &mapPath) // Clean up floor items, beings and particles floorItemManager->clear(); beingManager->clear(); - particleEngine->clear(); // Unset the map of the player so that its particles are cleared before // being deleted in the next step -- cgit v1.2.3-70-g09d2