Skip to content

Commit 912d3a6

Browse files
committed
Fix compilation
1 parent 29d4448 commit 912d3a6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/xrGame/script_game_object_script3.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -403,29 +403,29 @@ luabind::class_<CScriptGameObject>& script_register_game_object2(luabind::class_
403403

404404
.def("actor_look_at_point", &CScriptGameObject::ActorLookAtPoint)
405405

406-
.def("enable_level_changer", [](const CScriptGameObject* self, bool enable)
406+
.def("enable_level_changer", +[](const CScriptGameObject* self, bool enable)
407407
{
408408
if (auto* lch = smart_cast<CLevelChanger*>(&self->object()))
409409
lch->EnableLevelChanger(enable);
410410
})
411-
.def("is_level_changer_enabled", [](const CScriptGameObject* self)
411+
.def("is_level_changer_enabled", +[](const CScriptGameObject* self)
412412
{
413413
if (const auto* lch = smart_cast<CLevelChanger*>(&self->object()))
414414
return lch->IsLevelChangerEnabled();
415415
return false;
416416
})
417-
.def("enable_silent_level_changer", [](const CScriptGameObject* self, bool silent)
417+
.def("enable_silent_level_changer", +[](const CScriptGameObject* self, bool silent)
418418
{
419419
if (auto* lch = smart_cast<CLevelChanger*>(&self->object()))
420420
lch->EnableSilentMode(silent);
421421
})
422-
.def("is_level_changer_silent", [](const CScriptGameObject* self)
422+
.def("is_level_changer_silent", +[](const CScriptGameObject* self)
423423
{
424424
if (const auto* lch = smart_cast<CLevelChanger*>(&self->object()))
425425
return lch->IsSilentModeEnabled();
426426
return false;
427427
})
428-
.def("set_level_changer_invitation", [](const CScriptGameObject* self, pcstr invitation)
428+
.def("set_level_changer_invitation", +[](const CScriptGameObject* self, pcstr invitation)
429429
{
430430
if (auto* lch = smart_cast<CLevelChanger*>(&self->object()))
431431
lch->SetLevelChangerInvitationStr(invitation);

0 commit comments

Comments
 (0)