summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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