From 46021ed2bfc5097421112ee71d7fd8bc393348d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 17 Oct 2016 11:59:10 +0200 Subject: [PATCH] Fix self-assignment in ScenarioRepository --- src/ScenarioRepository.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ScenarioRepository.cpp b/src/ScenarioRepository.cpp index d05f3b0e72..a9b6bdf381 100644 --- a/src/ScenarioRepository.cpp +++ b/src/ScenarioRepository.cpp @@ -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; } }