From 5ffb38b5bc20d153fe8291ce6707ad0f7d1a0663 Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Sun, 4 Jun 2006 00:22:59 +0000 Subject: [PATCH] fixed invalid pathnames passed to CacheAndLoadModules causing auto load not to work --- amxmodx/CPlugin.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/amxmodx/CPlugin.cpp b/amxmodx/CPlugin.cpp index 068ef8c4..4af9661a 100755 --- a/amxmodx/CPlugin.cpp +++ b/amxmodx/CPlugin.cpp @@ -593,7 +593,6 @@ void CPluginMngr::CALMFromFile(const char *file) // Find now folder char pluginName[256]; char line[256]; - const char *pluginsDir = get_localinfo("amxx_pluginsdir", "addons/amxmodx/plugins"); String rline; while (!feof(fp)) @@ -610,7 +609,7 @@ void CPluginMngr::CALMFromFile(const char *file) if (!isalnum(*pluginName)) continue; - build_pathname_r(filename, sizeof(filename)-1, "%s/%s", pluginsDir, pluginName); + build_pathname_r(filename, sizeof(filename)-1, "%s/%s", get_localinfo("amxx_pluginsdir", "addons/amxmodx/plugins"), pluginName); CacheAndLoadModules(filename); }