From f32213b5a75840561c8bf0ccdc3b8372f56d1810 Mon Sep 17 00:00:00 2001 From: Andrey Voitishin Date: Mon, 29 Dec 2014 23:27:04 -0500 Subject: [PATCH] * Function passed by reference instead of value when registering with LUA minor change to methods added by @revolucas --- src/xrGame/level_script.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xrGame/level_script.cpp b/src/xrGame/level_script.cpp index 3ed6fa15fb8..82ee2cab6d6 100644 --- a/src/xrGame/level_script.cpp +++ b/src/xrGame/level_script.cpp @@ -628,10 +628,10 @@ IC static void CLevel_Export(lua_State* luaState) module(luaState, "level")[ //Alundaio: Extend level namespace exports - def("send", g_send) , //allow the ability to send netpacket to level + def("send", &g_send) , //allow the ability to send netpacket to level //def("ray_pick",g_ray_pick), - def("get_target_obj", g_get_target_obj) , //intentionally named to what is in xray extensions - def("get_target_dist", g_get_target_dist) , + def("get_target_obj", &g_get_target_obj) , //intentionally named to what is in xray extensions + def("get_target_dist", &g_get_target_dist) , //Alundaio: END // obsolete\deprecated def("object_by_id", get_object_by_id),