[7873] Use same name for realmd DB connection in realmd code as used in mangosd/game.

This commit is contained in:
VladimirMangos 2009-05-22 16:08:36 +04:00
parent 0bd7177b11
commit 3beec18f4e
4 changed files with 25 additions and 25 deletions

View file

@ -27,7 +27,7 @@
INSTANTIATE_SINGLETON_1( RealmList );
extern DatabaseType dbRealmServer;
extern DatabaseType loginDatabase;
RealmList::RealmList( ) : m_UpdateInterval(0), m_NextUpdateTime(time(NULL))
{
@ -79,7 +79,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)