---------------------------------------------------------------------------

Fixed memory bug found by fysh
This commit is contained in:
David Anderson
2005-07-24 07:06:25 +00:00
parent 0c36613352
commit 79268c5316
2 changed files with 3 additions and 3 deletions

View File

@@ -690,7 +690,7 @@ int loadModules(const char* filename, PLUG_LOADTIME now)
#ifndef FAKEMETA
if ( cc->IsMetamod())
{
char* mmpathname = build_pathname_addons("%s/%s", get_localinfo("amxx_modulesdir", "addons/amxmodx/modules"), line);
char* mmpathname = build_pathname_addons("%s/%s", get_localinfo("amxx_modulesdir", "addons/amxmodx/modules"), line.c_str());
ConvertModuleName(mmpathname, path);
cc->attachMetamod(path.c_str(), now);
}