From 21714668abe8bd31b4f7d6b09dc7d2362dd30487 Mon Sep 17 00:00:00 2001 From: colistro123 Date: Wed, 24 Jun 2020 06:11:02 -0300 Subject: [PATCH] Fix redefinition typo --- amx-deps/src/ml_base.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/amx-deps/src/ml_base.cpp b/amx-deps/src/ml_base.cpp index 3e42665..98aa4e7 100644 --- a/amx-deps/src/ml_base.cpp +++ b/amx-deps/src/ml_base.cpp @@ -112,12 +112,11 @@ MTAEXPORT bool InitModule ( ILuaModuleManager10 *pManager, char *szModuleName, c const char* envvar = getenv_portable("MTA_SCRIPTFILESDIR"); if (envvar != NULL) - fs::path scriptfilespath = envvar; + scriptfilespath = envvar; if (exists(scriptfilespath)) { setenv_portable("AMXFILE", scriptfilespath.string().c_str(), 0); - } - else { + } else { pModuleManager->ErrorPrintf("scriptfiles directory doesn't exist at: %s\n", scriptfilespath.string()); }