From 3485e06d2432f50b398ca9a79016c6a42f598a74 Mon Sep 17 00:00:00 2001 From: Xackery Date: Wed, 27 Mar 2024 01:43:27 -0700 Subject: [PATCH] Fix consider casting --- zone/lua_parser_events.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zone/lua_parser_events.cpp b/zone/lua_parser_events.cpp index 4026581aa3..73265c769b 100644 --- a/zone/lua_parser_events.cpp +++ b/zone/lua_parser_events.cpp @@ -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(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(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"); } }