summaryrefslogtreecommitdiff
path: root/internal_rewrite/simple_settings.hpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2018-11-19 11:48:11 +0100
committernavewindre <boneyaard@gmail.com>2018-11-19 11:48:11 +0100
commit83237c211f21b83959f234b58f44980423864f02 (patch)
tree921c28e290dc9301b3766823dfe826265ffbc12f /internal_rewrite/simple_settings.hpp
parentee88bdeca83ebf6aff4b2bebf2c1f93eb2bf9541 (diff)
ddsd
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