mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
[Bug Fix] Fix crash in EVENT_DISCOVER_ITEM (#2933)
* [Bug Fix] Fix crash in EVENT_DISCOVER_ITEM # Notes - `const` didn't like the `std::any_cast`, also was passing `EQ::ItemData*` instead of `EQ::ItemInstance*`. * Update client.cpp
This commit is contained in:
parent
18b62667f0
commit
19434197d4
@ -4093,8 +4093,8 @@ void Client::DiscoverItem(uint32 item_id) {
|
||||
}
|
||||
|
||||
if (parse->PlayerHasQuestSub(EVENT_DISCOVER_ITEM)) {
|
||||
const auto* item = database.GetItem(item_id);
|
||||
std::vector<std::any> args = {item};
|
||||
auto* item = database.CreateItem(item_id);
|
||||
std::vector<std::any> args = { item };
|
||||
|
||||
parse->EventPlayer(EVENT_DISCOVER_ITEM, this, "", item_id, &args);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user