Renamed local variable to avoid shadowing member variable.

pull/3955/head
Evangel 2021-06-12 13:08:14 +10:00
parent 7f0efa0866
commit a7a30baf27
1 changed files with 2 additions and 2 deletions

View File

@ -368,8 +368,8 @@ inline Value *Object::FindExtension(Value &val, const char *extensionId) {
} }
inline void Object::ReadExtensions(Value &val) { inline void Object::ReadExtensions(Value &val) {
if (Value *extensions = FindObject(val, "extensions")) { if (Value *curExtensions = FindObject(val, "extensions")) {
this->extensions = glTF2::ReadExtensions("extensions", *extensions); this->extensions = glTF2::ReadExtensions("extensions", *curExtensions);
} }
} }