Pete's Log: aaahhhhhhhh!
Entry #739, (Coding, Hacking, & CS stuff)(posted when I was 22 years old.)
so much time wasted on stupid stupid bugs. I'm about to punt This sucks this is stupid I need sleep I am not in good shape for coding at all.
The moral: if you want function variables to be persistent, you gotta declare 'em as static. See, I was thinking static when I wrote the code. I just forgot to actually type out the word static. Hours wasted. grrrr....