From a3c9eac53b8e6f974ebf22b17f41605661435855 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Mon, 13 Jun 2011 12:27:19 +0000 Subject: [PATCH] Fixed #274: unzipping of addons file would actually copy data/testures/materials.xml instead of materials.xml from the zip file. To fix any already downloaded addon, they have to be uninstalled and installed from scratch again. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8910 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/addons/zip.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/addons/zip.cpp b/src/addons/zip.cpp index 980855faa..e07b95c04 100644 --- a/src/addons/zip.cpp +++ b/src/addons/zip.cpp @@ -80,8 +80,8 @@ bool extract_zip(const std::string &from, const std::string &to) if(current_file[0]=='.') continue; const std::string base = StringUtils::getBasename(current_file); - IReadFile* src_file = - file_system->createAndOpenFile(current_file.c_str()); + IReadFile* src_file = + zip_archive->createAndOpenFile(current_file.c_str()); if(!src_file) { printf("[addons] Can't read file '%s'.\n", current_file.c_str());