attempt fix for autostoreitem
This commit is contained in:
parent
b0cb8dbb1f
commit
3a8496b853
@ -4,6 +4,10 @@
|
||||
#include "ObjectAccessor.h"
|
||||
#include "Config.h"
|
||||
#include "LootMgr.h"
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
#include <list>
|
||||
#include <string>
|
||||
|
||||
namespace
|
||||
{
|
||||
@ -47,10 +51,7 @@ namespace
|
||||
|
||||
Loot* loot = &go->loot;
|
||||
for (uint32 i = 0; i < loot->items.size(); ++i)
|
||||
{
|
||||
if (LootItem* li = loot->LootItemInSlot(i, plr))
|
||||
plr->AutoStoreLootItem(i, loot);
|
||||
}
|
||||
plr->StoreLootItem(i, loot);
|
||||
|
||||
plr->SendLootRelease(go->GetGUID());
|
||||
go->SetLootState(GO_JUST_DEACTIVATED);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user