summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorerihel <erihel@gmail.com>2013-01-15 22:52:37 +0100
committererihel <erihel@gmail.com>2013-01-15 22:52:37 +0100
commit01c39c88f67a924e6f067efdb16a750f8e19ea92 (patch)
tree06623802449661bc8c59b05ddbe0e8f13e735599 /src
parent58f35e44ae17a8d4c55b1b19696245666d3697d3 (diff)
downloadcolobot-01c39c88f67a924e6f067efdb16a750f8e19ea92.tar.gz
colobot-01c39c88f67a924e6f067efdb16a750f8e19ea92.tar.bz2
colobot-01c39c88f67a924e6f067efdb16a750f8e19ea92.zip
* Cleaning player list before getting new one (entering user menu several times appended user to existing list)
Diffstat (limited to 'src')
-rw-r--r--src/ui/maindialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp
index d19166e..cf451e5 100644
--- a/src/ui/maindialog.cpp
+++ b/src/ui/maindialog.cpp
@@ -4676,6 +4676,7 @@ void CMainDialog::UpdateSceneChap(int &chap)
{
j = 0;
fs::directory_iterator dirIt(m_savegameDir), dirEndIt;
+ m_userList.clear();
BOOST_FOREACH (const fs::path & p, std::make_pair(dirIt, dirEndIt))
{