Download

Abnormal Switch Case Behavior

Hello,
I have a simple switch-case function, but my const switchParameter changes himself in the function.
What is the problem?

When I jump into the function, the number is right:
functionSnapshot1.PNG
When I press F11 it jumps to this:
functionSnapshot2.PNG
Then this:
507efa8dd075b52078df86984ab13567b9839d30.png
And this:
functionSnapshot4.PNG

Looks fine to me. First thing I’d check is if you’ve compiled your code in debug as the watch data isn’t reliable in release.

I was in the mode “Development Editor”.
And well, that solved the Problem :slight_smile:

Thank you :slight_smile: