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