Skip to content

Commit

Permalink
Fix redefinition typo
Browse files Browse the repository at this point in the history
  • Loading branch information
colistro123 committed Jun 24, 2020
1 parent d6fa8f2 commit 2171466
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions amx-deps/src/ml_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 2171466

Please sign in to comment.