From 21259e08357c0b8487ab33ffd87d5f9118420dd7 Mon Sep 17 00:00:00 2001 From: Daniel Hritzkiv Date: Tue, 5 Sep 2017 14:39:52 -0400 Subject: [PATCH] Use different form of index accessor --- code/glTF2Asset.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/glTF2Asset.inl b/code/glTF2Asset.inl index 5764c6ff6..88dbfcfdb 100644 --- a/code/glTF2Asset.inl +++ b/code/glTF2Asset.inl @@ -211,7 +211,7 @@ Ref LazyDict::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");