changeset 11832:929c409c9912 draft

(svn r16222) -Fix: unneeded pointer dereferencing
author rubidium <rubidium@openttd.org>
date Sun, 03 May 2009 21:56:46 +0000
parents 888817ff3c37
children e4d9da4d81eb
files src/script/squirrel_std.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/script/squirrel_std.cpp
+++ b/src/script/squirrel_std.cpp
@@ -60,7 +60,7 @@
 	SQChar *s = scstrrchr(real_filename, PATHSEPCHAR);
 	if (s != NULL) {
 		/* Keep the PATHSEPCHAR there, remove the rest */
-		*s++;
+		s++;
 		*s = '\0';
 	}
 	/* And now we concat, so we are relative from the current script