summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-03 21:56:46 +0000
committerrubidium <rubidium@openttd.org>2009-05-03 21:56:46 +0000
commit21f5f602f9487c248d545487f40a539a35e698e9 (patch)
tree01d6368c47ebf9ebc95f101e9fff3a3dcb723271 /src/script
parent5f4eeee5f01e07393ab603d6baa705486d126913 (diff)
downloadopenttd-21f5f602f9487c248d545487f40a539a35e698e9.tar.xz
(svn r16222) -Fix: unneeded pointer dereferencing
Diffstat (limited to 'src/script')
-rw-r--r--src/script/squirrel_std.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/squirrel_std.cpp b/src/script/squirrel_std.cpp
index 2e705a35f..6b18cc9ff 100644
--- a/src/script/squirrel_std.cpp
+++ b/src/script/squirrel_std.cpp
@@ -60,7 +60,7 @@ SQInteger SquirrelStd::require(HSQUIRRELVM vm)
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