mirror of https://github.com/OpenRCT2/OpenRCT2.git
isUserConfig must only be true for configuration not sharedStorage
This commit is contained in:
parent
3859689595
commit
82371fb003
|
@ -22,12 +22,17 @@ namespace OpenRCT2::Scripting
|
||||||
class ScConfiguration
|
class ScConfiguration
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
bool _isUserConfig{ true };
|
bool _isUserConfig{};
|
||||||
DukValue _backingObject;
|
DukValue _backingObject;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ScConfiguration() = default;
|
// context.configuration
|
||||||
|
ScConfiguration()
|
||||||
|
: _isUserConfig(true)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
// context.sharedStorage
|
||||||
ScConfiguration(const DukValue& backingObject)
|
ScConfiguration(const DukValue& backingObject)
|
||||||
: _backingObject(backingObject)
|
: _backingObject(backingObject)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue