Maintenance: Behaviour fix in ReadConnectionInfo (fn_45390, sub_3DE8027): clientinfo GM list tags were inverted. The original reads o
Batch #14703 by ragnarok-clanker: forced by an admin (0 lower score(s), 0 changed function(s)); checked with 1 compiled unit(s).
This commit is contained in:
parent
a2984f2ce7
commit
52113818f9
1 changed files with 4 additions and 4 deletions
|
|
@ -121,8 +121,8 @@ __declspec(noinline) static void AssignIds(std::vector<int>& output, const int*
|
|||
// INLINED
|
||||
static void ReadIdList(XmlNode* list, int (&ids)[0x40], std::vector<int>& output) {
|
||||
int count = 0;
|
||||
for (XmlNode* aid = list->FindChild("aid"); aid != nullptr; aid = aid->FindSibling("aid")) {
|
||||
if (const char* text = NodeText(aid)) {
|
||||
for (XmlNode* admin = list->FindChild("admin"); admin != nullptr; admin = admin->FindSibling("admin")) {
|
||||
if (const char* text = NodeText(admin)) {
|
||||
ids[count++] = ParseNodeInt(text);
|
||||
}
|
||||
}
|
||||
|
|
@ -191,8 +191,8 @@ __declspec(noinline) static void ReadConnectionInfo(int connectionIndex) {
|
|||
g_serviceFlag07 = ParseNodeInt(text);
|
||||
}
|
||||
}
|
||||
if (XmlNode* admin = g_clientInfoConnection->FindChild("admin")) {
|
||||
ReadIdList(admin, g_clientInfoAdminIds, g_adminAccountIds);
|
||||
if (XmlNode* aid = g_clientInfoConnection->FindChild("aid")) {
|
||||
ReadIdList(aid, g_clientInfoAdminIds, g_adminAccountIds);
|
||||
}
|
||||
if (XmlNode* yellow = g_clientInfoConnection->FindChild("yellow")) {
|
||||
ReadIdList(yellow, g_clientInfoYellowIds, g_monsterJobs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue