diff options
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/script_config.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/script_config.cpp b/src/script/script_config.cpp index e359afb1e..4ebd04916 100644 --- a/src/script/script_config.cpp +++ b/src/script/script_config.cpp @@ -131,7 +131,7 @@ void ScriptConfig::AddRandomDeviation() { for (ScriptConfigItemList::const_iterator it = this->GetConfigList()->begin(); it != this->GetConfigList()->end(); it++) { if ((*it).random_deviation != 0) { - this->SetSetting((*it).name, InteractiveRandomRange((*it).random_deviation * 2) - (*it).random_deviation + this->GetSetting((*it).name)); + this->SetSetting((*it).name, InteractiveRandomRange((*it).random_deviation * 2 + 1) - (*it).random_deviation + this->GetSetting((*it).name)); } } } |