1.1 --- a/cssdm_weapons.cpp Mon Jul 02 22:36:40 2012 -0400
1.2 +++ b/cssdm_weapons.cpp Wed Jul 18 13:44:57 2012 -0400
1.3 @@ -74,15 +74,16 @@
1.4 if (!kv->LoadFromFile(basefilesystem, path))
1.5 {
1.6 kv->deleteThis();
1.7 - snprintf(error, maxlength, "Could not load weapons file \"%s\"", error);
1.8 + snprintf(error, maxlength, "Could not load weapons file \"%s\"", path);
1.9 return false;
1.10 }
1.11
1.12 - KeyValues *weapons = kv->FindKey("cstrike", false);
1.13 + const char *game = g_pSM->GetGameFolderName();
1.14 + KeyValues *weapons = kv->FindKey(game, false);
1.15 if (!weapons)
1.16 {
1.17 kv->deleteThis();
1.18 - snprintf(error, maxlength, "Could not find \"cstrike\" section in weapons file");
1.19 + snprintf(error, maxlength, "Could not find \"%s\" section in weapons file", game);
1.20 return false;
1.21 }
1.22