浏览代码

Use different form of index accessor

Daniel Hritzkiv 8 年之前
父节点
当前提交
21259e0835
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/glTF2Asset.inl

+ 1 - 1
code/glTF2Asset.inl

@@ -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");