1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Initialise various fields and variables

This commit is contained in:
Michał Janiszewski
2017-07-30 15:28:16 +02:00
parent 0d52030b4e
commit 1ea5a902df
4 changed files with 5 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ typedef struct http_request_t {
void *tag;
const char *method;
const char *url;
http_data_type type;
http_data_type type = HTTP_DATA_NONE;
size_t size;
union {
const json_t *root;

View File

@@ -234,7 +234,7 @@ private:
std::string _chatLogFilenameFormat = "%Y%m%d-%H%M%S.txt";
std::string _serverLogPath;
std::string _serverLogFilenameFormat = "-%Y%m%d-%H%M%S.txt";
OpenRCT2::IPlatformEnvironment * _env;
OpenRCT2::IPlatformEnvironment * _env = nullptr;
void UpdateServer();
void UpdateClient();

View File

@@ -38,7 +38,7 @@ extern "C"
}
// TODO Remove when no longer required.
static TitleScreen * _singleton;
static TitleScreen * _singleton = nullptr;
TitleScreen::TitleScreen()
{

View File

@@ -41,8 +41,8 @@ public:
private:
ITitleSequencePlayer * _sequencePlayer = nullptr;
uint16 _loadedTitleSequenceId = UINT16_MAX;
uint16 _currentSequence;
bool _hideVersionInfo;
uint16 _currentSequence = UINT16_MAX;
bool _hideVersionInfo = false;
void TitleInitialise();
void TryLoadSequence();