diff --git a/src/xrGame/action_base_script.cpp b/src/xrGame/action_base_script.cpp index 6bc1e2f0a20..89a28f015ac 100644 --- a/src/xrGame/action_base_script.cpp +++ b/src/xrGame/action_base_script.cpp @@ -18,7 +18,7 @@ IC static void CScriptActionBase_Export(lua_State* luaState) module(luaState) [ class_("action_base") - .def_readonly("object", &CScriptActionBase::m_object) + .def_readwrite("object", &CScriptActionBase::m_object) .def_readonly("storage", &CScriptActionBase::m_storage) .def(constructor<>()) .def(constructor()) diff --git a/src/xrGame/action_planner_script.cpp b/src/xrGame/action_planner_script.cpp index c7f51ac1430..faa9e4d2614 100644 --- a/src/xrGame/action_planner_script.cpp +++ b/src/xrGame/action_planner_script.cpp @@ -29,7 +29,7 @@ IC static void CScriptActionPlanner_Export(lua_State* luaState) module(luaState) [ class_("action_planner") - .def_readonly("object", &CScriptActionPlanner::m_object) + .def_readwrite("object", &CScriptActionPlanner::m_object) .def_readonly("storage", &CScriptActionPlanner::m_storage) .def(constructor<>()) .def("actual", &get_actual) diff --git a/src/xrGame/property_evaluator_script.cpp b/src/xrGame/property_evaluator_script.cpp index bf031b83274..19a0d862d8a 100644 --- a/src/xrGame/property_evaluator_script.cpp +++ b/src/xrGame/property_evaluator_script.cpp @@ -21,7 +21,7 @@ SCRIPT_EXPORT(CScriptPropertyEvaluator, (), class_("property_evaluator") - .def_readonly("object", &CScriptPropertyEvaluator::m_object) + .def_readwrite("object", &CScriptPropertyEvaluator::m_object) .def_readonly("storage", &CScriptPropertyEvaluator::m_storage) .def(constructor<>()) .def(constructor()) diff --git a/src/xrGame/script_binder_object_script.cpp b/src/xrGame/script_binder_object_script.cpp index 5dd2ef3568d..d2970edfc8c 100644 --- a/src/xrGame/script_binder_object_script.cpp +++ b/src/xrGame/script_binder_object_script.cpp @@ -19,7 +19,7 @@ SCRIPT_EXPORT(CScriptBinderObject, (), module(luaState) [ class_("object_binder") - .def_readonly("object", &CScriptBinderObject::m_object) + .def_readwrite("object", &CScriptBinderObject::m_object) .def(constructor()) .def("reinit", &CScriptBinderObject::reinit, &CScriptBinderObjectWrapper::reinit_static) .def("reload", &CScriptBinderObject::reload, &CScriptBinderObjectWrapper::reload_static) diff --git a/src/xrServerEntities/xrServer_Objects_ALife_Monsters_script3.cpp b/src/xrServerEntities/xrServer_Objects_ALife_Monsters_script3.cpp index 056e515124c..5b0ac7b7df0 100644 --- a/src/xrServerEntities/xrServer_Objects_ALife_Monsters_script3.cpp +++ b/src/xrServerEntities/xrServer_Objects_ALife_Monsters_script3.cpp @@ -79,7 +79,7 @@ static void CSE_ALifeOnlineOfflineGroup_Export(lua_State* luaState) [ class_("MEMBERS__value_type") .def_readonly("id", &CSE_ALifeOnlineOfflineGroup::MEMBERS::value_type::first) - .def_readonly("object", &CSE_ALifeOnlineOfflineGroup::MEMBERS::value_type::second), + .def_readwrite("object", &CSE_ALifeOnlineOfflineGroup::MEMBERS::value_type::second), luabind_class_online_offline_group2(CSE_ALifeOnlineOfflineGroup, "cse_alife_online_offline_group", CSE_ALifeDynamicObject, CSE_ALifeSchedulable)