mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-02 04:13:26 +00:00
(svn r16222) -Fix: unneeded pointer dereferencing
This commit is contained in:
parent
5f4eeee5f0
commit
21f5f602f9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user