Use different form of index accessor

pull/1423/head
Daniel Hritzkiv 2017-09-05 14:39:52 -04:00
parent 37527849b7
commit 21259e0835
No known key found for this signature in database
GPG Key ID: D1D19875679D5CBF
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ Ref<T> LazyDict<T>::Retrieve(unsigned int i)
throw DeadlyImportError("GLTF: Field is not an array \"" + std::string(mDictId) + "\""); throw DeadlyImportError("GLTF: Field is not an array \"" + std::string(mDictId) + "\"");
} }
Value& obj = mDict->operator[](i); Value &obj = (*mDict)[i];
if (!obj.IsObject()) { if (!obj.IsObject()) {
throw DeadlyImportError("GLTF: Object at index \"" + std::to_string(i) + "\" is not a JSON object"); throw DeadlyImportError("GLTF: Object at index \"" + std::to_string(i) + "\" is not a JSON object");