summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/WorldStorage.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/WorldStorage.cpp b/source/WorldStorage.cpp
index acd681e7f..4a4b68134 100644
--- a/source/WorldStorage.cpp
+++ b/source/WorldStorage.cpp
@@ -152,6 +152,9 @@ void cWorldStorage::WaitForFinish(void)
m_LoadQueue.clear();
}
+ // Wait for the saving to finish:
+ WaitForQueuesEmpty();
+
// Wait for the thread to finish:
m_ShouldTerminate = true;
m_Event.Set();