1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

Fixed dir access return value, changed it to Error like all other funcs

This commit is contained in:
Juan Linietsky
2017-01-14 09:16:41 -03:00
parent 7b9f2d9929
commit da4170540c
12 changed files with 21 additions and 21 deletions

View File

@@ -1830,9 +1830,9 @@ Error _Directory::open(const String& p_path) {
return OK;
}
bool _Directory::list_dir_begin() {
Error _Directory::list_dir_begin() {
ERR_FAIL_COND_V(!d,false);
ERR_FAIL_COND_V(!d,ERR_UNCONFIGURED);
return d->list_dir_begin();
}