Fix _File::get_buffer length always set to p_length

(cherry picked from commit 33d6eccdec)
This commit is contained in:
Johannes 2021-04-11 23:11:13 +02:00 committed by Rémi Verschelde
parent edcb95cede
commit 9a7e537aac
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -2117,7 +2117,7 @@ PoolVector<uint8_t> _File::get_buffer(int p_length) const {
w.release();
if (len < p_length)
data.resize(p_length);
data.resize(len);
return data;
}