mirror of https://github.com/OpenTTD/OpenTTD
(svn r16222) -Fix: unneeded pointer dereferencing
parent
5f4eeee5f0
commit
21f5f602f9
|
@ -60,7 +60,7 @@ SQInteger SquirrelStd::require(HSQUIRRELVM vm)
|
||||||
SQChar *s = scstrrchr(real_filename, PATHSEPCHAR);
|
SQChar *s = scstrrchr(real_filename, PATHSEPCHAR);
|
||||||
if (s != NULL) {
|
if (s != NULL) {
|
||||||
/* Keep the PATHSEPCHAR there, remove the rest */
|
/* Keep the PATHSEPCHAR there, remove the rest */
|
||||||
*s++;
|
s++;
|
||||||
*s = '\0';
|
*s = '\0';
|
||||||
}
|
}
|
||||||
/* And now we concat, so we are relative from the current script
|
/* And now we concat, so we are relative from the current script
|
||||||
|
|
Loading…
Reference in New Issue