Skip to content

Commit 7dbf571

Browse files
committed
Added missing return value to lua-exported "accessible_nearest" function.
1 parent bbadd41 commit 7dbf571

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrGame/script_game_object_script3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class_<CScriptGameObject>& script_register_game_object2(class_<CScriptGameObject
120120
.def("base_out_restrictions", &CScriptGameObject::base_out_restrictions)
121121
.def("accessible", &CScriptGameObject::accessible_position)
122122
.def("accessible", &CScriptGameObject::accessible_vertex_id)
123-
.def("accessible_nearest", &CScriptGameObject::accessible_nearest)
123+
.def("accessible_nearest", &CScriptGameObject::accessible_nearest, out_value<3>())
124124

125125
//////////////////////////////////////////////////////////////////////////
126126
.def("enable_attachable_item", &CScriptGameObject::enable_attachable_item)

0 commit comments

Comments
 (0)