mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 23:01:30 +00:00
[Bug Fix] Fix event_consider any_cast error (#4210)
This commit is contained in:
parent
cf7f0f4321
commit
4692799677
@ -1245,9 +1245,9 @@ void handle_player_consider(
|
|||||||
lua_setfield(L, -2, "entity_id");
|
lua_setfield(L, -2, "entity_id");
|
||||||
|
|
||||||
if (extra_pointers && extra_pointers->size() == 1) {
|
if (extra_pointers && extra_pointers->size() == 1) {
|
||||||
Lua_NPC l_npc(std::any_cast<NPC*>(extra_pointers->at(0)));
|
Lua_Mob l_mob(std::any_cast<Mob*>(extra_pointers->at(0)));
|
||||||
luabind::adl::object l_npc_o = luabind::adl::object(L, l_npc);
|
luabind::adl::object l_mob_o = luabind::adl::object(L, l_mob);
|
||||||
l_npc_o.push(L);
|
l_mob_o.push(L);
|
||||||
lua_setfield(L, -2, "other");
|
lua_setfield(L, -2, "other");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user