changeset 14989:c3ef9eb70f13 draft

(svn r19600) -Fix (r18994): Presence of online content was not properly updated after download due to duplicate slashes in the path.
author frosch <frosch@openttd.org>
date Sat, 10 Apr 2010 21:34:21 +0000
parents c9420e63b763
children 7e6cbd3da166
files src/network/network_content.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/network/network_content.cpp
+++ b/src/network/network_content.cpp
@@ -604,6 +604,7 @@
 
 		p = strrchr(str, '/');
 		check_not_null(p);
+		p++; // Start after the '/'
 
 		char tmp[MAX_PATH];
 		if (strecpy(tmp, p, lastof(tmp)) == lastof(tmp)) {