浏览代码

Dof bags and someitmes not showing up

added bag_id to the sort so that bags would typically be at top of list when inventory items sent to client
Robert Allen 10 月之前
父节点
当前提交
1c7e08a521
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      EQ2/source/WorldServer/Items/ItemsDB.cpp

+ 1 - 1
EQ2/source/WorldServer/Items/ItemsDB.cpp

@@ -1282,7 +1282,7 @@ void WorldDatabase::LoadCharacterItemList(int32 account_id, int32 char_id, Playe
 
 	Query query;
 	MYSQL_ROW row;
-	MYSQL_RES* result = query.RunQuery2(Q_SELECT, "SELECT type, id, slot, item_id, creator,adorn0,adorn1,adorn2, condition_, attuned, bag_id, count, max_sell_value, no_sale, UNIX_TIMESTAMP(last_saved), UNIX_TIMESTAMP(created) FROM character_items where char_id = %u or (bag_id = -4 and account_id = %u) ORDER BY slot asc", char_id, account_id);
+	MYSQL_RES* result = query.RunQuery2(Q_SELECT, "SELECT type, id, slot, item_id, creator,adorn0,adorn1,adorn2, condition_, attuned, bag_id, count, max_sell_value, no_sale, UNIX_TIMESTAMP(last_saved), UNIX_TIMESTAMP(created) FROM character_items where char_id = %u or (bag_id = -4 and account_id = %u) ORDER BY bag_id, slot asc", char_id, account_id);
 
 	if(result)
 	{