Skip to content

Commit

Permalink
Update inventory.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinglykrab authored and Akkadius committed Feb 13, 2023
1 parent 3635601 commit 733cae0
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions zone/inventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1136,10 +1136,7 @@ void Client::SendCursorBuffer()
}

if (parse->PlayerHasQuestSub(EVENT_DESTROY_ITEM_CLIENT)) {
std::vector<std::any> args;

args.emplace_back(test_inst);

std::vector<std::any> args = { test_inst };
parse->EventPlayer(EVENT_DESTROY_ITEM_CLIENT, this, "", 0, &args);
}

Expand Down Expand Up @@ -1879,10 +1876,7 @@ bool Client::SwapItem(MoveItem_Struct* move_in) {
}

if (parse->PlayerHasQuestSub(EVENT_DESTROY_ITEM_CLIENT)) {
std::vector<std::any> args;

args.emplace_back(test_inst);

std::vector<std::any> args = { test_inst };
parse->EventPlayer(EVENT_DESTROY_ITEM_CLIENT, this, "", 0, &args);
}

Expand Down Expand Up @@ -1928,10 +1922,7 @@ bool Client::SwapItem(MoveItem_Struct* move_in) {
}

if (parse->PlayerHasQuestSub(EVENT_DESTROY_ITEM_CLIENT)) {
std::vector<std::any> args;

args.emplace_back(inst);

std::vector<std::any> args = { inst };
parse->EventPlayer(EVENT_DESTROY_ITEM_CLIENT, this, "", 0, &args);
}
}
Expand Down

0 comments on commit 733cae0

Please sign in to comment.