projects
/
platform
/
upstream
/
assimp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3752784
)
Use different form of index accessor
author
Daniel Hritzkiv
<daniel.hritzkiv@gmail.com>
Tue, 5 Sep 2017 18:39:52 +0000
(14:39 -0400)
committer
Daniel Hritzkiv
<daniel.hritzkiv@gmail.com>
Mon, 11 Sep 2017 15:02:13 +0000
(11:02 -0400)
code/glTF2Asset.inl
patch
|
blob
|
history
diff --git
a/code/glTF2Asset.inl
b/code/glTF2Asset.inl
index
5764c6f
..
88dbfcf
100644
(file)
--- a/
code/glTF2Asset.inl
+++ b/
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");