mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
properly error out of G_NextWeapon() in case of error
This commit is contained in:
parent
67b45b701a
commit
c7b2362a59
@ -295,7 +295,7 @@ static int G_NextWeapon(int direction)
|
|||||||
|
|
||||||
if (i == arrlen(weapon_order_table))
|
if (i == arrlen(weapon_order_table))
|
||||||
{
|
{
|
||||||
return wp_nochange;
|
I_Error("G_NextWeapon: Invalid weapon type %d", (int)weapon);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Switch weapon. Don't loop forever.
|
// Switch weapon. Don't loop forever.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user