Skip to content

Commit

Permalink
Fixed Clang warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ioan-chera committed Oct 27, 2018
1 parent 0f9213b commit a2a2cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/p_inter.cpp
Expand Up @@ -301,7 +301,7 @@ static bool P_giveWeapon(player_t *player, const itemeffect_t *giver, bool dropp
}

itemeffect_t *ammogiven = nullptr;
while(ammogiven = giver->getNextKeyAndTypeEx(ammogiven, "ammogiven"))
while((ammogiven = giver->getNextKeyAndTypeEx(ammogiven, "ammogiven")))
{
itemeffect_t *ammo = nullptr;
int giveammo = 0, dropammo = 0, dmstayammo = 0, coopstayammo = 0;
Expand Down

0 comments on commit a2a2cd0

Please sign in to comment.