Fix #26300: Image data has its type incorrectly validated (#26302)

This commit is contained in:
Michał Janiszewski authored and GitHub committed 2026-04-02 06:59:39 +02:00
1 parent 99197312ce
commit 02c18b61b6
1 file changed
+1 -1
+1 -1
View File
@@ -221,7 +221,7 @@ namespace OpenRCT2::Scripting
std::string str = JSToStdString(ctx, data);
result = base64::decode_into<std::vector<uint8_t>>(str);
}
else if (JS_IsArrayBuffer(data))
else if (JS_GetTypedArrayType(data) == JSTypedArrayEnum::JS_TYPED_ARRAY_UINT8)
{
// From Uint8Array
size_t sz = 0;