1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

Fix self-assignment in ScenarioRepository

This commit is contained in:
Michał Janiszewski
2016-10-17 11:59:10 +02:00
committed by GitHub
parent d405e32c48
commit 46021ed2bf

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;
}
}