summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-05-25 15:19:10 +0200
committerGitHub <noreply@github.com>2021-05-25 15:19:10 +0200
commitf164c00a94793234879dc1824bd657db6df939ec (patch)
tree2e6c19a493c20e356b01a2a79f10e63c6e75ff56 /scene
parent313e1f62bb4ed85041bcd9290ec76660878fcd6b (diff)
parentda5d7db6100955922e08ee99a02f827214ed8281 (diff)
Merge pull request #49061 from madmiraal/rename-len-length
Rename File::get_len() get_length()
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/text_file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/text_file.cpp b/scene/resources/text_file.cpp
index b71909b6bb..564c65adb9 100644
--- a/scene/resources/text_file.cpp
+++ b/scene/resources/text_file.cpp
@@ -55,7 +55,7 @@ Error TextFile::load_text(const String &p_path) {
ERR_FAIL_COND_V_MSG(err, err, "Cannot open TextFile '" + p_path + "'.");
- uint64_t len = f->get_len();
+ uint64_t len = f->get_length();
sourcef.resize(len + 1);
uint8_t *w = sourcef.ptrw();
uint64_t r = f->get_buffer(w, len);