mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Removed unnecessary check from version loop.
Also unsigned counters let me sleep easier at night.
This commit is contained in:
@@ -401,9 +401,9 @@ namespace loot {
|
||||
delete file;
|
||||
|
||||
BOOST_LOG_TRIVIAL(trace) << name << ": " << "Attempting to read the version from the description.";
|
||||
for (int j = 0; j < 7 && version.empty(); j++) {
|
||||
for (size_t i = 0; i < 7; ++i) {
|
||||
smatch what;
|
||||
if (regex_search(text, what, version_checks[j])) {
|
||||
if (regex_search(text, what, version_checks[i])) {
|
||||
//Use the first sub-expression match.
|
||||
version = string(what[1].first, what[1].second);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user