1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Fix #13552: Incorrect value for highscore pointer (#13554)

This was causing an invalid pointer dereference
This commit is contained in:
Duncan
2020-12-08 19:23:51 +00:00
committed by GitHub
parent 14ed1505ad
commit b59bf6d9cf
2 changed files with 2 additions and 2 deletions

View File

@@ -129,7 +129,7 @@ class ScenarioFileIndex final : public FileIndex<scenario_index_entry>
{
private:
static constexpr uint32_t MAGIC_NUMBER = 0x58444953; // SIDX
static constexpr uint16_t VERSION = 4;
static constexpr uint16_t VERSION = 5;
static constexpr auto PATTERN = "*.sc4;*.sc6;*.sea";
public:

View File

@@ -40,7 +40,7 @@ struct scenario_index_entry
uint8_t objective_arg_1;
int32_t objective_arg_2;
int16_t objective_arg_3;
scenario_highscore_entry* highscore;
scenario_highscore_entry* highscore = nullptr;
utf8 internal_name[64]; // Untranslated name
utf8 name[64]; // Translated name