mirror of
https://github.com/godotengine/godot.git
synced 2025-04-07 00:44:24 +08:00
Revert "Fix _File::get_buffer
length always set to p_length"
This reverts commit 9a7e537aac0fd251cc500d39e41224c7bf2fdf48. Fixes #47971.
This commit is contained in:
parent
51be345a17
commit
701fa8a779
@ -2117,7 +2117,7 @@ PoolVector<uint8_t> _File::get_buffer(int p_length) const {
|
||||
w.release();
|
||||
|
||||
if (len < p_length)
|
||||
data.resize(len);
|
||||
data.resize(p_length);
|
||||
|
||||
return data;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user