From f3fcd24e8597feaabab67d0d354aef803958a465 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 21 Dec 2012 00:42:40 +0300 Subject: Fix possible crash with nav poinst rename dialog. --- src/game.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game.cpp') 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(); -- cgit v1.2.3-70-g09d2