summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 553f80c3..0d8cfa6c 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -140,6 +140,7 @@ namespace {
done = true;
}
exitConfirm = NULL;
+ disconnectedDialog = NULL;
}
} exitListener;
}
@@ -428,9 +429,8 @@ void Game::logic()
OkDialog("Network Error",
"The connection to the server was lost, the program will now quit");
disconnectedDialog->addActionListener(&exitListener);
+ disconnectedDialog->requestMoveToTop();
}
-
- disconnectedDialog->requestMoveToTop();
}
}
}