Commit a06fb764 authored by Jesse Snyder's avatar Jesse Snyder

Fix feature with items marked destroy.

parent 7d927f60
......@@ -271,8 +271,7 @@ bool DestroyStuff(void)
{
if (pItem->ID == DestroyID)
{
sprintf_s(szCommand, "/nomodkey /itemnotify \"%s\" leftmouseup", pItem->Item2->Name);
DoCommand(GetCharInfo()->pSpawn, szCommand);
PickupItem(eItemContainerPossessions, pItem);
LootTimer = pluginclock::now() + std::chrono::milliseconds(100);
return true;
}
......@@ -295,8 +294,7 @@ bool DestroyStuff(void)
{
if (pItem->ID == DestroyID)
{
sprintf_s(szCommand, "/nomodkey /itemnotify \"%s\" leftmouseup", pItem->Item2->Name);
DoCommand(GetCharInfo()->pSpawn, szCommand);
PickupItem(eItemContainerPossessions, pItem);
LootTimer = pluginclock::now() + std::chrono::milliseconds(100);
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment