mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-15 23:06:01 +08:00
Fix read from moved object.
This commit is contained in:
parent
b12a54ed15
commit
f4f5c3cf3a
@ -3229,9 +3229,11 @@ static bool ParseJsonAsValue(Value *ret, const json &o) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
const bool isNotNull = val.Type() != NULL_TYPE;
|
||||||
|
|
||||||
if (ret) *ret = std::move(val);
|
if (ret) *ret = std::move(val);
|
||||||
|
|
||||||
return val.Type() != NULL_TYPE;
|
return isNotNull;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool ParseExtrasProperty(Value *ret, const json &o) {
|
static bool ParseExtrasProperty(Value *ret, const json &o) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user