diff -r d8536de2e9ad -r 52cc55d67b2f cssdm_weapons.cpp --- a/cssdm_weapons.cpp Mon Jul 02 22:36:40 2012 -0400 +++ b/cssdm_weapons.cpp Wed Jul 18 13:44:57 2012 -0400 @@ -74,15 +74,16 @@ if (!kv->LoadFromFile(basefilesystem, path)) { kv->deleteThis(); - snprintf(error, maxlength, "Could not load weapons file \"%s\"", error); + snprintf(error, maxlength, "Could not load weapons file \"%s\"", path); return false; } - KeyValues *weapons = kv->FindKey("cstrike", false); + const char *game = g_pSM->GetGameFolderName(); + KeyValues *weapons = kv->FindKey(game, false); if (!weapons) { kv->deleteThis(); - snprintf(error, maxlength, "Could not find \"cstrike\" section in weapons file"); + snprintf(error, maxlength, "Could not find \"%s\" section in weapons file", game); return false; }