Skip to content

Commit

Permalink
[Bug Fix] Fix event_consider any_cast error (#4210)
Browse files Browse the repository at this point in the history
  • Loading branch information
xackery authored Mar 27, 2024
1 parent cf7f0f4 commit 4692799
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zone/lua_parser_events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1245,9 +1245,9 @@ void handle_player_consider(
lua_setfield(L, -2, "entity_id");

if (extra_pointers && extra_pointers->size() == 1) {
Lua_NPC l_npc(std::any_cast<NPC*>(extra_pointers->at(0)));
luabind::adl::object l_npc_o = luabind::adl::object(L, l_npc);
l_npc_o.push(L);
Lua_Mob l_mob(std::any_cast<Mob*>(extra_pointers->at(0)));
luabind::adl::object l_mob_o = luabind::adl::object(L, l_mob);
l_mob_o.push(L);
lua_setfield(L, -2, "other");
}
}
Expand Down

0 comments on commit 4692799

Please sign in to comment.