瀏覽代碼

Fix bug in previous commit

Rémi Verschelde 7 年之前
父節點
當前提交
d81bd965b6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/export_template_manager.cpp

+ 1 - 1
editor/export_template_manager.cpp

@@ -273,7 +273,7 @@ void ExportTemplateManager::_install_from_file(const String &p_file, bool p_use_
 		char fname[16384];
 		unzGetCurrentFileInfo(pkg, &info, fname, 16384, NULL, 0, NULL, 0);
 
-		String file = fname.get_file();
+		String file = String(fname).get_file();
 
 		Vector<uint8_t> data;
 		data.resize(info.uncompressed_size);