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 class AssetWriter;
std::vector<LazyDictBase *> mDicts;
public:
//! Keeps info about the enabled extensions
struct Extensions {
@ -1157,6 +1159,7 @@ public:
public:
Asset(IOSystem *io = nullptr, rapidjson::IRemoteSchemaDocumentProvider *schemaDocumentProvider = nullptr) :
mDicts(),
extensionsUsed(),
extensionsRequired(),
asset(),
@ -1217,7 +1220,6 @@ private:
size_t mSceneLength;
size_t mBodyOffset;
size_t mBodyLength;
std::vector<LazyDictBase *> mDicts;
IdMap mUsedIds;
Ref<Buffer> mBodyBuffer;
};