mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-03 19:52:26 +00:00
Fix for not loading some account data on character load
This commit is contained in:
parent
7f85d8c8a2
commit
b54411e533
@ -1374,10 +1374,9 @@ void Client::Handle_Connect_OP_ZoneEntry(const EQApplicationPacket *app)
|
|||||||
query = StringFormat("SELECT `status`, `name`, `lsaccount_id`, `gmspeed`, `revoked`, `hideme` FROM `account` WHERE `id` = %u", this->AccountID());
|
query = StringFormat("SELECT `status`, `name`, `lsaccount_id`, `gmspeed`, `revoked`, `hideme` FROM `account` WHERE `id` = %u", this->AccountID());
|
||||||
auto results = database.QueryDatabase(query);
|
auto results = database.QueryDatabase(query);
|
||||||
for (auto row = results.begin(); row != results.end(); ++row) {
|
for (auto row = results.begin(); row != results.end(); ++row) {
|
||||||
if (admin){ admin = atoi(row[0]); }
|
admin = atoi(row[0]);
|
||||||
if (account_name){ strcpy(account_name, row[1]); }
|
strncpy(account_name, row[1], 30);
|
||||||
if (lsaccountid && atoi(row[2]) > 0){ lsaccountid = atoi(row[2]); }
|
lsaccountid = atoi(row[2]);
|
||||||
else{ lsaccountid = 0; }
|
|
||||||
gmspeed = atoi(row[3]);
|
gmspeed = atoi(row[3]);
|
||||||
revoked = atoi(row[4]);
|
revoked = atoi(row[4]);
|
||||||
gmhideme = atoi(row[5]);
|
gmhideme = atoi(row[5]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user