Fix self-assignment in ScenarioRepository

This commit is contained in:
Michał Janiszewski authored and GitHub committed 2016-10-17 11:59:10 +02:00
1 parent d405e32c48
commit 46021ed2bf
1 file changed
+2 -2
+2 -2
View File
@@ -450,7 +450,7 @@ private:
{
SafeFree(highscore->name);
highscore->name = win1252_to_utf8_alloc(scBasic.completed_by);
highscore->company_value = highscore->company_value;
highscore->company_value = scBasic.company_value;
highscore->timestamp = DATETIME64_MIN;
break;
}
@@ -461,7 +461,7 @@ private:
scenario_highscore_entry * highscore = InsertHighscore();
highscore->fileName = String::Duplicate(scBasic.path);
highscore->name = win1252_to_utf8_alloc(scBasic.completed_by);
highscore->company_value = highscore->company_value;
highscore->company_value = scBasic.company_value;
highscore->timestamp = DATETIME64_MIN;
}
}