You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-25 15:37:42 +00:00
Fix for recurring check in gdscript_cach.cpp
This commit is contained in:
@@ -146,9 +146,7 @@ String GDScriptCache::get_source_code(const String &p_path) {
|
|||||||
Vector<uint8_t> source_file;
|
Vector<uint8_t> source_file;
|
||||||
Error err;
|
Error err;
|
||||||
Ref<FileAccess> f = FileAccess::open(p_path, FileAccess::READ, &err);
|
Ref<FileAccess> f = FileAccess::open(p_path, FileAccess::READ, &err);
|
||||||
if (err) {
|
ERR_FAIL_COND_V(err, "");
|
||||||
ERR_FAIL_COND_V(err, "");
|
|
||||||
}
|
|
||||||
|
|
||||||
uint64_t len = f->get_length();
|
uint64_t len = f->get_length();
|
||||||
source_file.resize(len + 1);
|
source_file.resize(len + 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user