From b12a54ed154b571c72928cfd606d4678b6f79156 Mon Sep 17 00:00:00 2001 From: Marcin Kacprzak Date: Fri, 2 Sep 2022 16:13:11 +0200 Subject: [PATCH] Silence MS code analysis tool. --- tiny_gltf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index dc5ba83..9fd1ee7 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -3671,7 +3671,8 @@ static bool ParseParameterProperty(Parameter *param, std::string *err, // Found a number array. return true; } else if (ParseNumberProperty(¶m->number_value, err, o, prop, false)) { - return param->has_number_value = true; + param->has_number_value = true; + return true; } else if (ParseJSONProperty(¶m->json_double_value, err, o, prop, false)) { return true;