Daniele Bartolini 12 лет назад
Родитель
Сommit
c686ae8f27
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      engine/compilers/package/PackageCompiler.cpp

+ 1 - 0
engine/compilers/package/PackageCompiler.cpp

@@ -49,6 +49,7 @@ size_t PackageCompiler::compile_impl(Filesystem& fs, const char* resource_path)
 
 
 	char file_buf[4096];
 	char file_buf[4096];
 	file->read(file_buf, file->size());
 	file->read(file_buf, file->size());
+	fs.close(file);
 
 
 	JSONParser json(file_buf);
 	JSONParser json(file_buf);
 	JSONElement root = json.root();
 	JSONElement root = json.root();