From 8f9654c5c658f2129838ba104a44f974f3388a2f Mon Sep 17 00:00:00 2001 From: SamuXarick <43006711+SamuXarick@users.noreply.github.com> Date: Tue, 31 Mar 2020 13:58:27 +0100 Subject: Fix: [Script] Random deviation upper bound range should be inclusive --- src/script/script_config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script') 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)); } } } -- cgit v1.2.3-54-g00ecf