if

I have an int variable, startWith_teller, that is passed into a function by reference. It goes through a simple if statement where its value changes from 0 to 1 as intended. Then the second it leaves the if statement it changes back to 0 again. It must be something really simple, but I am not seeing it. I am guessing that there may be logic elsewhere in the program that is throwing it off. Why isn't the variable keeping the value it was changed too?

1
2
3
if (wait == 0) {
		startWith_teller = event.arrivalTime;
	}
I got it. Just needed to use a different object for arrivalTime.
Topic archived. No new replies allowed.