mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[9702] Drop now redundent item_text table.
* In beggining bad news: at 3.3.3 switch has been forgoted item_instance.data field chnage. In result items with texts (mail copy in to inventory, some other) lost text content. * That why in current commit item_text droped without convertion. In result all itesm with texts will lost text. Sorry for this as i think small porblem :( * Now text stored in item itself.
This commit is contained in:
parent
53486545b5
commit
24f2d03485
17 changed files with 85 additions and 152 deletions
|
|
@ -279,8 +279,8 @@ void AuctionHouseMgr::SendAuctionExpiredMail( AuctionEntry * auction )
|
|||
|
||||
void AuctionHouseMgr::LoadAuctionItems()
|
||||
{
|
||||
// data needs to be at first place for Item::LoadFromDB
|
||||
QueryResult *result = CharacterDatabase.Query( "SELECT data,itemguid,item_template FROM auctionhouse JOIN item_instance ON itemguid = guid" );
|
||||
// data needs to be at first place for Item::LoadFromDB 0 1 2 3
|
||||
QueryResult *result = CharacterDatabase.Query( "SELECT data,text,itemguid,item_template FROM auctionhouse JOIN item_instance ON itemguid = guid" );
|
||||
|
||||
if( !result )
|
||||
{
|
||||
|
|
@ -301,8 +301,8 @@ void AuctionHouseMgr::LoadAuctionItems()
|
|||
bar.step();
|
||||
|
||||
fields = result->Fetch();
|
||||
uint32 item_guid = fields[1].GetUInt32();
|
||||
uint32 item_template = fields[2].GetUInt32();
|
||||
uint32 item_guid = fields[2].GetUInt32();
|
||||
uint32 item_template = fields[3].GetUInt32();
|
||||
|
||||
ItemPrototype const *proto = ObjectMgr::GetItemPrototype(item_template);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue