Skip to content

Commit

Permalink
Fix #6892: [Script] CONFIG_RANDOM did not use the full parameter range (
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuXarick authored and frosch123 committed Sep 20, 2018
1 parent 59a1614 commit 41fb7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/script_config.cpp
Expand Up @@ -36,7 +36,7 @@ void ScriptConfig::Change(const char *name, int version, bool force_exact_match,
* for the Script that have the random flag to a random value. */
for (ScriptConfigItemList::const_iterator it = this->info->GetConfigList()->begin(); it != this->info->GetConfigList()->end(); it++) {
if ((*it).flags & SCRIPTCONFIG_RANDOM) {
this->SetSetting((*it).name, InteractiveRandomRange((*it).max_value - (*it).min_value) + (*it).min_value);
this->SetSetting((*it).name, InteractiveRandomRange((*it).max_value + 1 - (*it).min_value) + (*it).min_value);
}
}
this->AddRandomDeviation();
Expand Down

0 comments on commit 41fb7cb

Please sign in to comment.