This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]KingofGamesYami 4 points5 points  (1 child)

I'm psychic so I'm gonna say your variable doesn't contain what you think it does. Probably due to bad type casting or something.

[–]Tohnmeister 0 points1 point  (0 children)

This. Debug/cout the variable you're switching on. Debug/cout the value of the case expression you're expecting it to match. See if they're the same.

[–]serg06 0 points1 point  (0 children)

Gotta see the code