Skip to content

Commit

Permalink
* Function passed by reference instead of value when registering with…
Browse files Browse the repository at this point in the history
… LUA

minor change to methods added by @revolucas
  • Loading branch information
avoitishin authored and Xottab-DUTY committed Aug 14, 2017
1 parent e073223 commit f32213b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/xrGame/level_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit f32213b

Please sign in to comment.