Skip to content

Commit e1cca82

Browse files
author
Pavel Kovalenko
committed
Redefine second argument of _vector3::clamp as reference.
1 parent 458b2e0 commit e1cca82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/xrCore/_vector3d.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ struct _vector3 {
8282
}
8383

8484
// Clamp vector3
85-
IC SelfRef clamp(const Self &min, const Self max)
85+
IC SelfRef clamp(const Self &min, const Self& max)
8686
{
8787
::clamp(x,min.x,max.x);
8888
::clamp(y,min.y,max.y);

src/xrServerEntities/script_fvector_script.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void CScriptFvector::script_register(lua_State *L)
5151
.def("align", &Fvector::align, return_reference_to(_1))
5252
// .def("squeeze", &Fvector::squeeze, return_reference_to(_1))
5353
.def("clamp", (Fvector & (Fvector::*)(const Fvector &))(&Fvector::clamp), return_reference_to(_1))
54-
.def("clamp", (Fvector & (Fvector::*)(const Fvector &, const Fvector))(&Fvector::clamp), return_reference_to(_1))
54+
.def("clamp", (Fvector & (Fvector::*)(const Fvector &, const Fvector &))(&Fvector::clamp), return_reference_to(_1))
5555
.def("inertion", &Fvector::inertion, return_reference_to(_1))
5656
.def("average", (Fvector & (Fvector::*)(const Fvector &))(&Fvector::average), return_reference_to(_1))
5757
.def("average", (Fvector & (Fvector::*)(const Fvector &, const Fvector &))(&Fvector::average), return_reference_to(_1))

0 commit comments

Comments
 (0)