From cbfcd21d98bfd7ba396cc58a614a5c8a9f594cdc Mon Sep 17 00:00:00 2001 From: Zackhasacat Date: Thu, 16 Nov 2023 15:23:09 +0000 Subject: [PATCH] Make actor.providedServices read only --- apps/openmw/mwlua/types/actor.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwlua/types/actor.hpp b/apps/openmw/mwlua/types/actor.hpp index 409559475f..4a16b65cbf 100644 --- a/apps/openmw/mwlua/types/actor.hpp +++ b/apps/openmw/mwlua/types/actor.hpp @@ -45,7 +45,7 @@ namespace MWLua providedServices[name] = (services & flag) != 0; } providedServices["Travel"] = !rec.getTransport().empty(); - return providedServices; + return LuaUtil::makeReadOnly(providedServices); }); } }