diff --git a/src/realmd/RealmList.cpp b/src/realmd/RealmList.cpp index 31c3482bd..d11024fcc 100644 --- a/src/realmd/RealmList.cpp +++ b/src/realmd/RealmList.cpp @@ -151,18 +151,19 @@ void RealmList::UpdateRealms(bool init) { Field* fields = result->Fetch(); + uint32 Id = fields[0].GetUInt32(); + std::string name = fields[1].GetCppString(); + uint8 realmflags = fields[5].GetUInt8(); uint8 allowedSecurityLevel = fields[7].GetUInt8(); - uint8 realmflags = fields[5].GetUInt8(); - if (realmflags & ~(REALM_FLAG_OFFLINE | REALM_FLAG_NEW_PLAYERS | REALM_FLAG_RECOMMENDED | REALM_FLAG_SPECIFYBUILD)) { - sLog.outError("Realm allowed have only OFFLINE Mask 0x2), or NEWPLAYERS (mask 0x20), or RECOMMENDED (mask 0x40), or SPECIFICBUILD (mask 0x04) flags in DB"); + sLog.outError("Realm (id %u, name '%s') can only be flagged as OFFLINE (mask 0x02), NEWPLAYERS (mask 0x20), RECOMMENDED (mask 0x40), or SPECIFICBUILD (mask 0x04) in DB", Id, name.c_str()); realmflags &= (REALM_FLAG_OFFLINE | REALM_FLAG_NEW_PLAYERS | REALM_FLAG_RECOMMENDED | REALM_FLAG_SPECIFYBUILD); } UpdateRealm( - fields[0].GetUInt32(), fields[1].GetCppString(), fields[2].GetCppString(), fields[3].GetUInt32(), + Id, name, fields[2].GetCppString(), fields[3].GetUInt32(), fields[4].GetUInt8(), RealmFlags(realmflags), fields[6].GetUInt8(), (allowedSecurityLevel <= SEC_ADMINISTRATOR ? AccountTypes(allowedSecurityLevel) : SEC_ADMINISTRATOR), fields[8].GetFloat(), fields[9].GetCppString()); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 21fdd09b4..3d9ba8270 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "12067" + #define REVISION_NR "12068" #endif // __REVISION_NR_H__