]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Person.cpp
Fix hardcoded clothes paths in maps
[lugaru.git] / Source / Person.cpp
index 9e2bc9f4bf7d6cc01604ac4ba46ea205c54cc3b8..59994f890a4284b714593c85d3130db8ed4baa82 100644 (file)
@@ -26,6 +26,7 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #include "Awards.h"
 #include "Game.h"
 #include "Dialog.h"
+#include "Utils/Folders.h"
 
 extern float multiplier;
 extern Terrain terrain;
@@ -6790,7 +6791,7 @@ bool Person::addClothes(const int& clothesId)
 
     //Load Image
     ImageRec texture;
-    bool opened = load_image(fileName, texture);
+    bool opened = load_image(Folders::getResourcePath(fileName).c_str(), texture);
 
     float alphanum;
     //Is it valid?