Skip to content

Commit

Permalink
xrGame: Fix const-less function pointer cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Zegeri committed Sep 16, 2018
1 parent facb9a6 commit 9770522
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xrGame/script_game_object_script2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,16 +367,16 @@ class_<CScriptGameObject>& script_register_game_object1(class_<CScriptGameObject
.def("set_smart_cover_target_default", &CScriptGameObject::set_smart_cover_target_default)

.def("idle_min_time", (void (CScriptGameObject::*)(float)) & CScriptGameObject::idle_min_time)
.def("idle_min_time", (float (CScriptGameObject::*)() const) & CScriptGameObject::idle_min_time)
.def("idle_min_time", (float const (CScriptGameObject::*)() const) & CScriptGameObject::idle_min_time)

.def("idle_max_time", (void (CScriptGameObject::*)(float)) & CScriptGameObject::idle_max_time)
.def("idle_max_time", (float (CScriptGameObject::*)() const) & CScriptGameObject::idle_max_time)
.def("idle_max_time", (float const (CScriptGameObject::*)() const) & CScriptGameObject::idle_max_time)

.def("lookout_min_time", (void (CScriptGameObject::*)(float)) & CScriptGameObject::lookout_min_time)
.def("lookout_min_time", (float (CScriptGameObject::*)() const) & CScriptGameObject::lookout_min_time)
.def("lookout_min_time", (float const (CScriptGameObject::*)() const) & CScriptGameObject::lookout_min_time)

.def("lookout_max_time", (void (CScriptGameObject::*)(float)) & CScriptGameObject::lookout_max_time)
.def("lookout_max_time", (float (CScriptGameObject::*)() const) & CScriptGameObject::lookout_max_time)
.def("lookout_max_time", (float const(CScriptGameObject::*)() const) & CScriptGameObject::lookout_max_time)

.def("in_loophole_fov", &CScriptGameObject::in_loophole_fov)
.def("in_current_loophole_fov", &CScriptGameObject::in_current_loophole_fov)
Expand Down

0 comments on commit 9770522

Please sign in to comment.