Skip to content

Commit

Permalink
Fixed small typo in comment 😊 clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
adya committed Mar 30, 2024
1 parent e155778 commit a879a82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SPID/include/LookupFilters.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Filter

struct Data
{
// Note that chance passed to this constructor is expected to be in percent. It will be converted to a decimal chance during by the constructor.
// Note that chance passed to this constructor is expected to be in percent. It will be converted to a decimal chance by the constructor.
Data(StringFilters a_strings, FormFilters a_formFilters, LevelFilters a_level, Traits a_traits, PercentChance a_chance);

StringFilters strings{};
Expand Down
3 changes: 1 addition & 2 deletions SPID/src/LookupFilters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,10 @@ namespace Filter
{
// Fail chance first to avoid running unnecessary checks
if (chance < 1) {
double randNum = RNG().generate();
const auto randNum = RNG().generate();
if (randNum > chance) {
return Result::kFailRNG;
}
std::string res = "passed";
}

if (passed_string_filters(a_npcData) == Result::kFail) {
Expand Down

0 comments on commit a879a82

Please sign in to comment.