Ensure dictionary for LazyDics is created before adding content to it
parent
466b34cf53
commit
6f31254ae1
|
@ -1090,6 +1090,8 @@ class Asset {
|
||||||
friend struct Buffer; // To access OpenFile
|
friend struct Buffer; // To access OpenFile
|
||||||
friend class AssetWriter;
|
friend class AssetWriter;
|
||||||
|
|
||||||
|
std::vector<LazyDictBase *> mDicts;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//! Keeps info about the enabled extensions
|
//! Keeps info about the enabled extensions
|
||||||
struct Extensions {
|
struct Extensions {
|
||||||
|
@ -1157,6 +1159,7 @@ public:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Asset(IOSystem *io = nullptr, rapidjson::IRemoteSchemaDocumentProvider *schemaDocumentProvider = nullptr) :
|
Asset(IOSystem *io = nullptr, rapidjson::IRemoteSchemaDocumentProvider *schemaDocumentProvider = nullptr) :
|
||||||
|
mDicts(),
|
||||||
extensionsUsed(),
|
extensionsUsed(),
|
||||||
extensionsRequired(),
|
extensionsRequired(),
|
||||||
asset(),
|
asset(),
|
||||||
|
@ -1217,7 +1220,6 @@ private:
|
||||||
size_t mSceneLength;
|
size_t mSceneLength;
|
||||||
size_t mBodyOffset;
|
size_t mBodyOffset;
|
||||||
size_t mBodyLength;
|
size_t mBodyLength;
|
||||||
std::vector<LazyDictBase *> mDicts;
|
|
||||||
IdMap mUsedIds;
|
IdMap mUsedIds;
|
||||||
Ref<Buffer> mBodyBuffer;
|
Ref<Buffer> mBodyBuffer;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue