summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-21 00:42:40 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-21 02:50:12 +0300
commitf3fcd24e8597feaabab67d0d354aef803958a465 (patch)
tree06b17d34696a7acca422a26352d022f31e51ce90 /src/game.cpp
parentdff5c359fc0aec10a63556b7072d5e724ec0bf8e (diff)
downloadplus-f3fcd24e8597feaabab67d0d354aef803958a465.tar.gz
plus-f3fcd24e8597feaabab67d0d354aef803958a465.tar.bz2
plus-f3fcd24e8597feaabab67d0d354aef803958a465.tar.xz
plus-f3fcd24e8597feaabab67d0d354aef803958a465.zip
Fix possible crash with nav poinst rename dialog.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 32201a85b..f3d57df9e 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -984,6 +984,9 @@ void Game::changeMap(const std::string &mapPath)
{
resetAdjustLevel();
+ if (viewport)
+ viewport->clearPopup();
+
// Clean up floor items, beings and particles
if (actorSpriteManager)
actorSpriteManager->clear();