1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00

Remove memset

This commit is contained in:
ζeh Matt
2023-02-16 22:48:21 +02:00
parent 1f03bc89d7
commit b057f0fe82
2 changed files with 2 additions and 3 deletions

View File

@@ -732,7 +732,6 @@ private:
ScenarioHighscoreEntry* InsertHighscore()
{
auto highscore = new ScenarioHighscoreEntry();
std::memset(highscore, 0, sizeof(ScenarioHighscoreEntry));
_highscores.push_back(highscore);
return highscore;
}

View File

@@ -22,8 +22,8 @@ struct ScenarioHighscoreEntry
{
u8string fileName;
u8string name;
money64 company_value;
datetime64 timestamp;
money64 company_value{};
datetime64 timestamp{};
};
enum class ScenarioSource : uint8_t