I have two functions used in hiring soldier procedure: one for finding an equipment set in a virtual storage, and one for "compiling" the soldier.
I've noticed that ome of soldiers were hired without ammo, while I was sure the ammo is in storage.
After some test I firured it out: both funtions have the same variable name inside its scope, and these variables are not private.
But shouldn't different functions have different scopes?