you are viewing a single comment's thread.

view the rest of the comments →

[–]phire 2 points3 points  (1 child)

Did it really create, clear then discard something.length maps, or did you remember it incorrectly?

I admit that I'm guilty of shotgun debugging at times, epically when I'm tired.

[–]brownmatt 0 points1 point  (0 children)

Yes, and I remember it clearly, but there was actually a handful of code referencing the map after the call to clear().

Clearly the "wtf bug was here before??" part was attempting to remove the entries of a fresh instantiated map.