Ensure dictionary for LazyDics is created before adding content to it

pull/4408/head
Kim Kulling 2022-02-23 20:57:15 +01:00
parent 466b34cf53
commit 6f31254ae1
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}; };