View Single Post
  #1  
Old 11-20-2004, 07:16 AM
Xorith
Sarnak
 
Join Date: Nov 2004
Posts: 52
Default Item is for display purposes - Look at the Code

Alrighty, posting this here where it belongs.

I played with NODROP stuff, I've looked at what I could. This is stil bothering me.

Line 3081 in client_packet.cpp
Code:
for(itr = merlist.begin();itr != merlist.end();itr++){
   MerchantList ml = *itr;
   if(mp->itemslot == ml.slot){ // <-- This ifcheck doesn't pass on any item.
      item_id = ml.item;
      break;
   }
}
I noted above. I threw in some debug messages and found that the loop runs fine, but it never passes the ifcheck on any of the items.

What exactly is mp->itemslot and ml.slot? The slot number on the merchant? If so, what would cause this to never match?

I tried to get as close to the issue as I could to aid those who are willing to help.

-- Xorith
Reply With Quote