This commit is contained in:
Christoph Oelckers 2014-06-01 09:04:37 +02:00
commit 90ac160b70
1 changed files with 2 additions and 2 deletions

View File

@ -1143,7 +1143,7 @@ AWeapon *FWeaponSlots::PickNextWeapon(player_t *player)
return weap;
}
}
while ((slot != startslot || index != startindex) && slotschecked < NUM_WEAPON_SLOTS);
while ((slot != startslot || index != startindex) && slotschecked <= NUM_WEAPON_SLOTS);
}
return player->ReadyWeapon;
}
@ -1198,7 +1198,7 @@ AWeapon *FWeaponSlots::PickPrevWeapon (player_t *player)
return weap;
}
}
while ((slot != startslot || index != startindex) && slotschecked < NUM_WEAPON_SLOTS);
while ((slot != startslot || index != startindex) && slotschecked <= NUM_WEAPON_SLOTS);
}
return player->ReadyWeapon;
}