diff options
| author | Juan Linietsky | 2017-11-25 00:07:54 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-11-25 00:09:40 -0300 |
| commit | bc2e8d99e5ae0dbd69e712cc71da3033f5f30139 (patch) | |
| tree | d836011e3d5873e3ceea328ea3100f3c7719ab99 /core/os | |
| parent | 7dfba3cda9f13427f9f10a6eefbec52aef62274c (diff) | |
| download | godot-bc2e8d99e5ae0dbd69e712cc71da3033f5f30139.tar.gz godot-bc2e8d99e5ae0dbd69e712cc71da3033f5f30139.tar.zst godot-bc2e8d99e5ae0dbd69e712cc71da3033f5f30139.zip | |
Diffstat (limited to 'core/os')
| -rw-r--r-- | core/os/file_access.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/os/file_access.cpp b/core/os/file_access.cpp index 5fdd2b913..7b2062936 100644 --- a/core/os/file_access.cpp +++ b/core/os/file_access.cpp @@ -481,7 +481,7 @@ Vector<uint8_t> FileAccess::get_file_as_array(const String &p_path) { ERR_FAIL_COND_V(!f, Vector<uint8_t>()); Vector<uint8_t> data; data.resize(f->get_len()); - f->get_buffer(data.ptr(), data.size()); + f->get_buffer(data.ptrw(), data.size()); memdelete(f); return data; } |
