Removing multi-vendor Rochet2 patch
It caused compilation errors too
This commit is contained in:
parent
f6eefedcd5
commit
bf139c3d34
8 changed files with 11 additions and 74 deletions
|
|
@ -260,8 +260,7 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
char* addMulti = strtok(NULL, " ");
|
||||
uint32 vendor_entry = addMulti ? handler->GetSession()->GetCurrentVendor() : vendor ? vendor->GetEntry() : 0;
|
||||
uint32 vendor_entry = vendor ? vendor->GetEntry() : 0;
|
||||
|
||||
if (!sObjectMgr->IsVendorItemValid(vendor_entry, itemId, maxcount, incrtime, extendedcost, handler->GetSession()->GetPlayer()))
|
||||
{
|
||||
|
|
@ -484,8 +483,7 @@ public:
|
|||
}
|
||||
uint32 itemId = atol(pitem);
|
||||
|
||||
char* addMulti = strtok(NULL, " ");
|
||||
if (!sObjectMgr->RemoveVendorItem(addMulti ? handler->GetSession()->GetCurrentVendor() : vendor->GetEntry(), itemId))
|
||||
if (!sObjectMgr->RemoveVendorItem(vendor->GetEntry(), itemId))
|
||||
{
|
||||
handler->PSendSysMessage(LANG_ITEM_NOT_IN_LIST, itemId);
|
||||
handler->SetSentErrorMessage(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue