aboutsummaryrefslogtreecommitdiff
path: root/src/trinityrealm/RealmList.cpp
diff options
context:
space:
mode:
authorBlaymoira <none@none>2009-01-04 17:20:23 +0100
committerBlaymoira <none@none>2009-01-04 17:20:23 +0100
commitc9f0d4292afa4b468728c456f7ec0f56d8d15c62 (patch)
treecec65105e31ae59f4867e002855244f81cd43f0d /src/trinityrealm/RealmList.cpp
parentc4401376ab510c48cccf0b95cb52c79b038bec5b (diff)
*Cleaned up database queries - by XTZGZoReX
--HG-- branch : trunk
Diffstat (limited to 'src/trinityrealm/RealmList.cpp')
-rw-r--r--src/trinityrealm/RealmList.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trinityrealm/RealmList.cpp b/src/trinityrealm/RealmList.cpp
index 97fdfbdd91f..32c0cbc12c1 100644
--- a/src/trinityrealm/RealmList.cpp
+++ b/src/trinityrealm/RealmList.cpp
@@ -29,7 +29,7 @@
INSTANTIATE_SINGLETON_1( RealmList );
-extern DatabaseType dbRealmServer;
+extern DatabaseType LoginDatabase;
RealmList::RealmList( ) : m_UpdateInterval(0), m_NextUpdateTime(time(NULL))
{
@@ -82,7 +82,7 @@ void RealmList::UpdateRealms(bool init)
{
sLog.outDetail("Updating Realm List...");
- QueryResult *result = dbRealmServer.Query( "SELECT id, name, address, port, icon, color, timezone, allowedSecurityLevel, population FROM realmlist WHERE color <> 3 ORDER BY name" );
+ QueryResult *result = LoginDatabase.Query( "SELECT id, name, address, port, icon, color, timezone, allowedSecurityLevel, population FROM realmlist WHERE color <> 3 ORDER BY name" );
///- Circle through results and add them to the realm map
if(result)