Skip to content

Commit

Permalink
Fix crash when trying to kill entity via script method "kill"
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Dec 16, 2017
1 parent 204b8ad commit d52aaea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/xrGame/script_game_object_script2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class_<CScriptGameObject>& script_register_game_object1(class_<CScriptGameObject
.def("change_team", (void (CScriptGameObject::*)(u8, u8, u8))(&CScriptGameObject::ChangeTeam))
.def("set_visual_memory_enabled", &CScriptGameObject::SetVisualMemoryEnabled)
.def("kill", &CScriptGameObject::Kill)
.def("kill", (void (CScriptGameObject::*)(CScriptGameObject*))(&CScriptGameObject::Kill))
.def("hit", &CScriptGameObject::Hit)
.def("play_cycle", (void (CScriptGameObject::*)(LPCSTR))(&CScriptGameObject::play_cycle))
.def("play_cycle", (void (CScriptGameObject::*)(LPCSTR, bool))(&CScriptGameObject::play_cycle))
Expand Down

0 comments on commit d52aaea

Please sign in to comment.