Trouble passing value to bool variable from if/else statement

After two bool variables have been assigned an initial value, they are assigned as arguments in a function.
After being run through the if/ else statement they appear to be correct, but directly after the function they revert back to the original values.
They are not global, but are public.
Assignments to variables passed as parameters to functions are not seen by the caller of the function unless the parameters are passed by reference.
is there a good place to see the difference in the syntax? I can't seem to find a good example in my searches
When to pass parameters by value, reference, and pointer:
http://www.cplusplus.com/articles/z6vU7k9E/
closed account (DSLq5Di1)
We could point you in the right direction if you posted a snippet of the code encompassing your problem.
I would like to thank everyone for helping, I discovered I had forgotten an & before my argument variables!!
Topic archived. No new replies allowed.