The math was wrong

This commit is contained in:
Mari the Deer 2020-06-03 10:24:03 +02:00
commit d27bbc0eef
2 changed files with 3 additions and 3 deletions

View file

@ -167,7 +167,7 @@ Class WallbusterReloadMenu : GenericMenu
return true;
}
int i = 0;
while ( (queue.Size() > 0) && (++i < 5) )
while ( (queue.Size() > 0) && (i++ < 5) )
{
if ( !PopAmmo() )
break;
@ -181,7 +181,7 @@ Class WallbusterReloadMenu : GenericMenu
return true;
}
int j = 0;
while ( (queue.Size() < 25) && (++j < 5) )
while ( (queue.Size() < 25) && (j++ < 5) )
{
if ( !PushAmmo(true) )
return true;