diff --git a/amxmodx/CString.h b/amxmodx/CString.h index b8cc7b2c..cf410a1a 100755 --- a/amxmodx/CString.h +++ b/amxmodx/CString.h @@ -139,7 +139,7 @@ public: if (index >= (int)len || index < 0) return npos; unsigned int i = 0; - for (i=index; i<(int)len; i++) + for (i=index; i<(unsigned int)len; i++) { if (v[i] == c) { @@ -271,7 +271,7 @@ public: num = len - index; } - unsigned int i = 0, j=0; + unsigned int i = 0; unsigned int nslen = num + 2; ns.Grow(nslen); diff --git a/amxmodx/modules.cpp b/amxmodx/modules.cpp index 5e1c6f49..d4cee11d 100755 --- a/amxmodx/modules.cpp +++ b/amxmodx/modules.cpp @@ -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); }