mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:59:54 +00:00
3bad40153c
To make sure loaded settings have valid values doing the check once per loading. And to make access more efficient.
12 lines
187 B
C++
12 lines
187 B
C++
#include "values.hpp"
|
|
|
|
namespace Settings
|
|
{
|
|
Values* Values::sValues = nullptr;
|
|
|
|
void Values::init()
|
|
{
|
|
static Values values;
|
|
Values::sValues = &values;
|
|
}
|
|
}
|