You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Fix _File::get_buffer length always set to p_length
(cherry picked from commit 33d6eccdec)
This commit is contained in:
committed by
Rémi Verschelde
parent
edcb95cede
commit
9a7e537aac
@@ -2117,7 +2117,7 @@ PoolVector<uint8_t> _File::get_buffer(int p_length) const {
|
|||||||
w.release();
|
w.release();
|
||||||
|
|
||||||
if (len < p_length)
|
if (len < p_length)
|
||||||
data.resize(p_length);
|
data.resize(len);
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user