Skip to content

Commit 17c56ef

Browse files
authored
[#10] I dunno, maybe...
1 parent 5197719 commit 17c56ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/game/scripts/manager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ void parseFile(Manager* man, File& fl, const std::string& filename, bool cacheFi
487487
// TODO: Figure out something a little better-optimized than always running
488488
// three regexes on every line of code?
489489
// On the bright side, we're only running them if we're in the right section...
490-
std::string osrLine = new std::string(*iLine);
490+
auto osrLine = new std::string(iLine);
491491
while(reg_match(osrLine, match, pre_osr_single_line)) {
492492
const std::string prefix = reg_str(osrLine, match, 1);
493493
const std::string postfix = reg_str(osrLine, match, 4);

0 commit comments

Comments
 (0)