Skip to content

Commit

Permalink
[#10] Fix a few more errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaloLorn authored Jan 28, 2025
1 parent 4917434 commit 4f2d635
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/game/scripts/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,12 +369,12 @@ void preloadScript(const std::string& filename) {
}

bool matchesCompilerVersion(const std::string& minVersion, const std::string& maxVersion) {
if(std::strlen(minVersion)) {
if(minVersion.length()) {
const int version = std::stoi(minVersion);
if(OSR_COMPILER_VERSION < version)
return false;
}
if(std::strlen(maxVersion)) {
if(maxVersion.length()) {
const int version = std::stoi(maxVersion);
if(OSR_COMPILER_VERSION > version)
return false;
Expand Down Expand Up @@ -414,7 +414,7 @@ void parseFile(Manager* man, File& fl, const std::string& filename, bool cacheFi
for(auto iLine = lines.begin(), end = lines.end(); iLine != end; ++iLine) {
const std::string& originalLine = *iLine;
// I'm not actually sure if this amounts to a meaningful optimization... or any optimization.
std:string& line = originalLine;
std::string& line = originalLine;

auto lineStart = line.find_first_not_of(" \t");
if(lineStart == std::string::npos) {
Expand Down

0 comments on commit 4f2d635

Please sign in to comment.