Fix missing return

master
Marc Gilleron 2020-09-13 02:47:26 +01:00
parent 944128463a
commit 644ec60003
1 changed files with 1 additions and 2 deletions

View File

@ -46,7 +46,7 @@ Error load_vox(const String &fpath, Data &data) {
Error err;
FileAccessRef f = FileAccess::open(fpath, FileAccess::READ, &err);
if (f == nullptr) {
err;
return err;
}
char magic[5] = { 0 };
@ -62,7 +62,6 @@ Error load_vox(const String &fpath, Data &data) {
const size_t flen = f->get_len();
while (f->get_position() < flen) {
int ddpos = f->get_position();
char chunk_id[5] = { 0 };
ERR_FAIL_COND_V(f->get_buffer((uint8_t *)chunk_id, 4) != 4, ERR_PARSE_ERROR);