- fixed bad loop handling in FWeaponSlots::SetFromGameInfo().

This commit is contained in:
Christoph Oelckers 2016-03-04 16:25:23 +01:00
parent d1f17e0b46
commit b9c72e372b

View file

@ -1297,7 +1297,7 @@ void FWeaponSlots::SetFromGameInfo()
// Append extra weapons to the slots.
for (i = 0; i < NUM_WEAPON_SLOTS; ++i)
{
for (unsigned j = 0; j < gameinfo.DefaultWeaponSlots[i].Size(); i++)
for (unsigned j = 0; j < gameinfo.DefaultWeaponSlots[i].Size(); j++)
{
PClassWeapon *cls = dyn_cast<PClassWeapon>(PClass::FindClass(gameinfo.DefaultWeaponSlots[i][j]));
if (cls == NULL)