Use different form of index accessor
authorDaniel Hritzkiv <daniel.hritzkiv@gmail.com>
Tue, 5 Sep 2017 18:39:52 +0000 (14:39 -0400)
committerDaniel Hritzkiv <daniel.hritzkiv@gmail.com>
Mon, 11 Sep 2017 15:02:13 +0000 (11:02 -0400)
code/glTF2Asset.inl

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