summaryrefslogtreecommitdiff
path: root/internal_rewrite/simple_settings.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'internal_rewrite/simple_settings.hpp')
-rw-r--r--internal_rewrite/simple_settings.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal_rewrite/simple_settings.hpp b/internal_rewrite/simple_settings.hpp
index 9dffa55..e3187ba 100644
--- a/internal_rewrite/simple_settings.hpp
+++ b/internal_rewrite/simple_settings.hpp
@@ -44,8 +44,12 @@ public:
strcat_s( full_path, "_" );
strcat_s( full_path, name_.c_str( ) );
- for ( auto x : setting_nodes_ )
+ for( auto x : setting_nodes_ ) {
+ if( !x )
+ continue;
+
x->load( full_path, file );
+ }
}
__declspec( noinline ) void save( const char* path, const char* file ) const override