aboutsummaryrefslogtreecommitdiff
path: root/src/game/World.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/World.cpp')
-rw-r--r--src/game/World.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game/World.cpp b/src/game/World.cpp
index 6a0da7fc90a..0eefc688789 100644
--- a/src/game/World.cpp
+++ b/src/game/World.cpp
@@ -2612,3 +2612,17 @@ void World::UpdateMaxSessionCounters()
m_maxActiveSessionCount = std::max(m_maxActiveSessionCount,uint32(m_sessions.size()-m_QueuedPlayer.size()));
m_maxQueuedSessionCount = std::max(m_maxQueuedSessionCount,uint32(m_QueuedPlayer.size()));
}
+
+void World::LoadDBVersion()
+{
+ QueryResult* result = WorldDatabase.Query("SELECT version FROM db_version LIMIT 1");
+ if(result)
+ {
+ Field* fields = result->Fetch();
+
+ m_DBVersion = fields[0].GetString();
+ delete result;
+ }
+ else
+ m_DBVersion = "unknown world database";
+}