summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-02-28 15:24:21 -0700
committerJared Adams <jaxad0127@gmail.com>2010-02-28 15:35:18 -0700
commit802bb1289f25be47d1897fe05871b561f82f9498 (patch)
tree92b33d8d1260b379218d7abe77a231bdaf42521f /src
parent2c65bf7207625b11b67e2e5e1296b7090de0a524 (diff)
downloadmana-802bb1289f25be47d1897fe05871b561f82f9498.tar.gz
mana-802bb1289f25be47d1897fe05871b561f82f9498.tar.bz2
mana-802bb1289f25be47d1897fe05871b561f82f9498.tar.xz
mana-802bb1289f25be47d1897fe05871b561f82f9498.zip
Fix loading branding data
Reviewed-by: Chuck Miller
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 10a43b8e..a21d004d 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -283,9 +283,7 @@ Client::Client(const Options &options):
int loc = path.find_last_of('/');
#endif
if (loc > 0)
- path = path.substr(0, loc + 1);
-
- resman->addToSearchPath(path + "data", false);
+ resman->addToSearchPath(path.substr(0, loc + 1) + "data", false);
}
// Add the main data directories to our PhysicsFS search path