Adding a 's' to the addons type when removing it directory, it is data/kart, not data/karts ^^

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5872 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
xapantu 2010-09-02 16:41:10 +00:00
parent 58637fb82a
commit c6b5ba2e76

View File

@ -390,7 +390,7 @@ void Addons::UnInstall()
//write the xml file with the informations about installed karts
this->SaveInstalled();
std::string dest_file = file_manager->getAddonsDir() + "/" + "data" + "/" +
this->m_addons_list[this->index].type + "/" +
this->m_addons_list[this->index].type + "s/" +
this->m_addons_list[this->index].name + "/";
//remove the addons directory