diff --git a/code/FBXUtil.cpp b/code/FBXUtil.cpp index 43c1a3bbb..0c73ba9f9 100644 --- a/code/FBXUtil.cpp +++ b/code/FBXUtil.cpp @@ -170,6 +170,7 @@ size_t DecodeBase64(const char* in, size_t inLength, uint8_t* out, size_t maxOut { out[dst_offset++] = static_cast((val >> valb) & 0xFF); valb -= 8; + val &= 0xFFF; } } return dst_offset;