Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-11-2002, 03:53 AM
keshik
Fire Beetle
 
Join Date: Oct 2002
Posts: 4
Default

Thought I'd clarify what I said.

The bad line is in BulkSendMerchantInventory right after it picks a random item from handyitem. Code looks something like this.

APPLAYER* outapp = new APPLAYER(OP_ShopItem, 5000);
outapp->size = 2 + DeflatePacket((uchar*) cpi->packets, cpi->count * sizeof(MerchantItemD_Struct), &outapp->pBuffer[2], 5000-2);
MerchantItem_Struct* cpi2 = (MerchantItem_Struct*) outapp->pBuffer;
cpi2->count = cpi->count;
QueuePacket(outapp);
//DumpPacket(outapp);
//printf("Merchant has %i items available.\n",cpi->count);
delete outapp;


// delete cpi; << bad line handyitem not done with it yet



Mob* merch = entity_list.GetMob(npcid);
if(merch != 0 && handyitem)
{
... blah blah blah... }


delete cpi; // << good line

}


Hope that clears things up. Sorry that post was so confusing. Lack-o-sleep induced insanity.

Laters,
Keshik
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:51 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3