From a879a82cb9b0eba2658e513aa038fc3373ee8dc6 Mon Sep 17 00:00:00 2001 From: Arkadii Hlushchevskyi Date: Sun, 31 Mar 2024 00:00:53 +0200 Subject: [PATCH] =?UTF-8?q?Fixed=20small=20typo=20in=20comment=20?= =?UTF-8?q?=F0=9F=98=8A=20clean=20up.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SPID/include/LookupFilters.h | 2 +- SPID/src/LookupFilters.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/SPID/include/LookupFilters.h b/SPID/include/LookupFilters.h index 5da1012..01c8161 100644 --- a/SPID/include/LookupFilters.h +++ b/SPID/include/LookupFilters.h @@ -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{}; diff --git a/SPID/src/LookupFilters.cpp b/SPID/src/LookupFilters.cpp index bdf528c..edc395b 100644 --- a/SPID/src/LookupFilters.cpp +++ b/SPID/src/LookupFilters.cpp @@ -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) {