diff options
author | Bjørn <bjorn@horst-dieter.(none)> | 2009-04-12 15:40:37 +0200 |
---|---|---|
committer | Bjørn <bjorn@horst-dieter.(none)> | 2009-04-12 15:44:42 +0200 |
commit | e41371d866d403260f713a06c877d24eb43ad7b3 (patch) | |
tree | 67c0fa8ef53cc5a8dc6d9c8397f3a180c6eaba47 | |
parent | 92a8e0403595cd0f4b8b2084c45ec79edca7e7c1 (diff) | |
download | mana-client-e41371d866d403260f713a06c877d24eb43ad7b3.tar.gz mana-client-e41371d866d403260f713a06c877d24eb43ad7b3.tar.bz2 mana-client-e41371d866d403260f713a06c877d24eb43ad7b3.tar.xz mana-client-e41371d866d403260f713a06c877d24eb43ad7b3.zip |
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.
-rw-r--r-- | src/engine.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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 |