mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 22:01:30 +00:00
Fix for (possible) shared bank errors
This commit is contained in:
parent
3031365e1f
commit
b28930b2ea
@ -407,13 +407,13 @@ bool SharedDatabase::GetSharedBank(uint32 id, Inventory *inv, bool is_charid)
|
|||||||
"sb.augslot1, sb.augslot2, sb.augslot3, "
|
"sb.augslot1, sb.augslot2, sb.augslot3, "
|
||||||
"sb.augslot4, sb.augslot5, sb.augslot6, sb.custom_data "
|
"sb.augslot4, sb.augslot5, sb.augslot6, sb.custom_data "
|
||||||
"FROM sharedbank sb INNER JOIN character_data ch "
|
"FROM sharedbank sb INNER JOIN character_data ch "
|
||||||
"ON ch.account_id=sb.acctid WHERE ch.id = %i",
|
"ON ch.account_id=sb.acctid WHERE ch.id = %i ORDER BY sb.slotid",
|
||||||
id);
|
id);
|
||||||
else
|
else
|
||||||
query = StringFormat("SELECT slotid, itemid, charges, "
|
query = StringFormat("SELECT slotid, itemid, charges, "
|
||||||
"augslot1, augslot2, augslot3, "
|
"augslot1, augslot2, augslot3, "
|
||||||
"augslot4, augslot5, augslot6, custom_data "
|
"augslot4, augslot5, augslot6, custom_data "
|
||||||
"FROM sharedbank WHERE acctid=%i",
|
"FROM sharedbank WHERE acctid=%i ORDER BY slotid",
|
||||||
id);
|
id);
|
||||||
auto results = QueryDatabase(query);
|
auto results = QueryDatabase(query);
|
||||||
if (!results.Success()) {
|
if (!results.Success()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user