Fix _File::get_buffer
length always set to p_length
This commit is contained in:
parent
712bb8cbb6
commit
33d6eccdec
1 changed files with 1 additions and 1 deletions
|
@ -1334,7 +1334,7 @@ Vector<uint8_t> _File::get_buffer(int p_length) const {
|
|||
ERR_FAIL_COND_V(len < 0, Vector<uint8_t>());
|
||||
|
||||
if (len < p_length) {
|
||||
data.resize(p_length);
|
||||
data.resize(len);
|
||||
}
|
||||
|
||||
return data;
|
||||
|
|
Loading…
Reference in a new issue