mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 19:26:00 +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;
|
||||
}
|
||||
#endif
|
||||
const bool isNotNull = val.Type() != NULL_TYPE;
|
||||
|
||||
if (ret) *ret = std::move(val);
|
||||
|
||||
return val.Type() != NULL_TYPE;
|
||||
return isNotNull;
|
||||
}
|
||||
|
||||
static bool ParseExtrasProperty(Value *ret, const json &o) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user