From b9c72e372b72e17a7675f785c222c18c60ffc921 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 4 Mar 2016 16:25:23 +0100 Subject: [PATCH] - fixed bad loop handling in FWeaponSlots::SetFromGameInfo(). --- src/g_shared/a_weapons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_shared/a_weapons.cpp b/src/g_shared/a_weapons.cpp index 27f7b088e..93036b031 100644 --- a/src/g_shared/a_weapons.cpp +++ b/src/g_shared/a_weapons.cpp @@ -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(PClass::FindClass(gameinfo.DefaultWeaponSlots[i][j])); if (cls == NULL)