summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2022-09-01 11:07:01 -0500
committerAaron Franke <arnfranke@yahoo.com>2022-09-01 11:07:01 -0500
commit0eb420679c07182cb8a2e47a8ab8383937bfc854 (patch)
tree119ba0d9e93731b914e7a7308fa2052b3211c675
parent9a368eca43927907ac59d9c2f21c8f6da757e654 (diff)
Fix a minor bug in the Projection binary decode logic
-rw-r--r--core/io/marshalls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/marshalls.cpp b/core/io/marshalls.cpp
index 2f69c10218..b24c49f58d 100644
--- a/core/io/marshalls.cpp
+++ b/core/io/marshalls.cpp
@@ -510,7 +510,7 @@ Error decode_variant(Variant &r_variant, const uint8_t *p_buffer, int p_len, int
(*r_len) += sizeof(double) * 16;
}
} else {
- ERR_FAIL_COND_V((size_t)len < sizeof(float) * 62, ERR_INVALID_DATA);
+ ERR_FAIL_COND_V((size_t)len < sizeof(float) * 16, ERR_INVALID_DATA);
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
val.matrix[i][j] = decode_float(&buf[(i * 4 + j) * sizeof(float)]);