summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
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