mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
Only allow menu scripts to register permanent groups
This commit is contained in:
parent
1092d2058d
commit
8cc47f5363
@ -493,6 +493,9 @@ return {
|
||||
end,
|
||||
registerRenderer = registerRenderer,
|
||||
registerGroup = function(options)
|
||||
if not options.permanentStorage then
|
||||
error('Menu scripts are only allowed to register setting groups with permanentStorage = true')
|
||||
end
|
||||
common.registerGroup(options)
|
||||
menuGroups[options.key] = true
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user