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

This was causing an invalid pointer dereference
This commit is contained in:
Duncan authored and GitHub committed 2020-12-08 16:23:51 -03:00
1 parent 14ed1505ad
commit b59bf6d9cf
2 files changed
+2 -2

No files matched your search

+1 -1
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:
+1 -1
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