Fixes Startup Error, and ghost profiles 5.0.2 (#422)
* fixed unsafe chaperone issue * fixed phantom names on offset/video profiles * version strings
This commit is contained in:
@@ -46,6 +46,7 @@ struct OffsetProfile : settings::ISettingsObject
|
||||
{
|
||||
settings::SettingsObjectData o;
|
||||
|
||||
o.addValue( profileName );
|
||||
o.addValue( static_cast<double>( offsetX ) );
|
||||
o.addValue( static_cast<double>( offsetY ) );
|
||||
o.addValue( static_cast<double>( offsetZ ) );
|
||||
@@ -57,6 +58,7 @@ struct OffsetProfile : settings::ISettingsObject
|
||||
|
||||
virtual void loadSettings( settings::SettingsObjectData& obj ) override
|
||||
{
|
||||
profileName = ( obj.getNextValueOrDefault( "" ) );
|
||||
offsetX = static_cast<float>( obj.getNextValueOrDefault( 0.0 ) );
|
||||
offsetY = static_cast<float>( obj.getNextValueOrDefault( 0.0 ) );
|
||||
offsetZ = static_cast<float>( obj.getNextValueOrDefault( 0.0 ) );
|
||||
|
||||
Reference in New Issue
Block a user