@@ -403,29 +403,29 @@ luabind::class_<CScriptGameObject>& script_register_game_object2(luabind::class_
403
403
404
404
.def (" actor_look_at_point" , &CScriptGameObject::ActorLookAtPoint)
405
405
406
- .def (" enable_level_changer" , [](const CScriptGameObject* self, bool enable)
406
+ .def (" enable_level_changer" , + [](const CScriptGameObject* self, bool enable)
407
407
{
408
408
if (auto * lch = smart_cast<CLevelChanger*>(&self->object ()))
409
409
lch->EnableLevelChanger (enable);
410
410
})
411
- .def (" is_level_changer_enabled" , [](const CScriptGameObject* self)
411
+ .def (" is_level_changer_enabled" , + [](const CScriptGameObject* self)
412
412
{
413
413
if (const auto * lch = smart_cast<CLevelChanger*>(&self->object ()))
414
414
return lch->IsLevelChangerEnabled ();
415
415
return false ;
416
416
})
417
- .def (" enable_silent_level_changer" , [](const CScriptGameObject* self, bool silent)
417
+ .def (" enable_silent_level_changer" , + [](const CScriptGameObject* self, bool silent)
418
418
{
419
419
if (auto * lch = smart_cast<CLevelChanger*>(&self->object ()))
420
420
lch->EnableSilentMode (silent);
421
421
})
422
- .def (" is_level_changer_silent" , [](const CScriptGameObject* self)
422
+ .def (" is_level_changer_silent" , + [](const CScriptGameObject* self)
423
423
{
424
424
if (const auto * lch = smart_cast<CLevelChanger*>(&self->object ()))
425
425
return lch->IsSilentModeEnabled ();
426
426
return false ;
427
427
})
428
- .def (" set_level_changer_invitation" , [](const CScriptGameObject* self, pcstr invitation)
428
+ .def (" set_level_changer_invitation" , + [](const CScriptGameObject* self, pcstr invitation)
429
429
{
430
430
if (auto * lch = smart_cast<CLevelChanger*>(&self->object ()))
431
431
lch->SetLevelChangerInvitationStr (invitation);
0 commit comments