From 99a215c8ec6458f9ceecf848c5747db35ca1c44a Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 3 May 2009 21:56:46 +0000 Subject: [PATCH] (svn r16222) -Fix: unneeded pointer dereferencing --- src/script/squirrel_std.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/squirrel_std.cpp b/src/script/squirrel_std.cpp index 2e705a35f5..6b18cc9ff9 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