From 701fa8a7796615d2fdd0c19931b50e020eb0a5ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 17 Apr 2021 13:06:43 +0200 Subject: [PATCH] Revert "Fix `_File::get_buffer` length always set to p_length" This reverts commit 9a7e537aac0fd251cc500d39e41224c7bf2fdf48. Fixes #47971. --- core/bind/core_bind.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index 0e34aa97b7c..514a22fa6bc 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -2117,7 +2117,7 @@ PoolVector _File::get_buffer(int p_length) const { w.release(); if (len < p_length) - data.resize(len); + data.resize(p_length); return data; }