diff --git a/src/boosting/gbdt.cpp b/src/boosting/gbdt.cpp index 211b688370fa..16f0d51444e4 100644 --- a/src/boosting/gbdt.cpp +++ b/src/boosting/gbdt.cpp @@ -719,7 +719,7 @@ void GBDT::ResetConfig(const Config* config) { if (train_data_ != nullptr) { ResetBaggingConfig(new_config.get(), false); } - if (config_.get() != nullptr && config_->forcedsplits_filename != new_config->forcedbins_filename) { + if (config_.get() != nullptr && config_->forcedsplits_filename != new_config->forcedsplits_filename) { // load forced_splits file if (!new_config->forcedsplits_filename.empty()) { std::ifstream forced_splits_file(