Skip to content

Commit 2171466

Browse files
committed
Fix redefinition typo
1 parent d6fa8f2 commit 2171466

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

amx-deps/src/ml_base.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,11 @@ MTAEXPORT bool InitModule ( ILuaModuleManager10 *pManager, char *szModuleName, c
112112

113113
const char* envvar = getenv_portable("MTA_SCRIPTFILESDIR");
114114
if (envvar != NULL)
115-
fs::path scriptfilespath = envvar;
115+
scriptfilespath = envvar;
116116

117117
if (exists(scriptfilespath)) {
118118
setenv_portable("AMXFILE", scriptfilespath.string().c_str(), 0);
119-
}
120-
else {
119+
} else {
121120
pModuleManager->ErrorPrintf("scriptfiles directory doesn't exist at: %s\n", scriptfilespath.string());
122121
}
123122

0 commit comments

Comments
 (0)