mirror of https://github.com/OpenRCT2/OpenRCT2.git
Initialise fields to safe values
This commit is contained in:
parent
7f5683895b
commit
50d26d87eb
|
@ -94,11 +94,11 @@ static void ReportMissingObject(const rct_object_entry * entry);
|
||||||
|
|
||||||
class ObjectRepository : public IObjectRepository
|
class ObjectRepository : public IObjectRepository
|
||||||
{
|
{
|
||||||
IPlatformEnvironment * _env;
|
IPlatformEnvironment * _env = nullptr;
|
||||||
std::vector<ObjectRepositoryItem> _items;
|
std::vector<ObjectRepositoryItem> _items;
|
||||||
QueryDirectoryResult _queryDirectoryResult;
|
QueryDirectoryResult _queryDirectoryResult = { 0 };
|
||||||
ObjectEntryMap _itemMap;
|
ObjectEntryMap _itemMap;
|
||||||
uint16 _languageId;
|
uint16 _languageId = 0;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ObjectRepository(IPlatformEnvironment * env)
|
ObjectRepository(IPlatformEnvironment * env)
|
||||||
|
|
|
@ -68,7 +68,7 @@ private:
|
||||||
IPlatformEnvironment * _env;
|
IPlatformEnvironment * _env;
|
||||||
|
|
||||||
std::vector<TrackRepositoryItem> _items;
|
std::vector<TrackRepositoryItem> _items;
|
||||||
QueryDirectoryResult _directoryQueryResult;
|
QueryDirectoryResult _directoryQueryResult = { 0 };
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TrackDesignRepository(IPlatformEnvironment * env)
|
TrackDesignRepository(IPlatformEnvironment * env)
|
||||||
|
|
Loading…
Reference in New Issue