Fix extract zip writing lowercase files (#8221)
authorrubenwardy <rw@rubenwardy.com>
Thu, 14 Feb 2019 20:03:45 +0000 (20:03 +0000)
committerParamat <paramat@users.noreply.github.com>
Thu, 14 Feb 2019 20:03:45 +0000 (20:03 +0000)
src/script/lua_api/l_mainmenu.cpp

index 9a64bd0ab190b50f913f7aeda8558612e6b9b867..2557f448abca46b2f20fc565db1d20dbb4b64c40 100644 (file)
@@ -761,7 +761,7 @@ int ModApiMainMenu::l_extract_zip(lua_State *L)
 
                io::IFileSystem *fs = RenderingEngine::get_filesystem();
 
-               if (!fs->addFileArchive(zipfile,true,false,io::EFAT_ZIP)) {
+               if (!fs->addFileArchive(zipfile, false, false, io::EFAT_ZIP)) {
                        lua_pushboolean(L,false);
                        return 1;
                }