Jump to content
  • Advertisement
Sign in to follow this  
BloodLust666

If statement glitch

This topic is 4513 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

The if statement is SUPPOSED to fail... but it still goes into the if statement even though it clearly equals "false". is there a fix?

Share this post


Link to post
Share on other sites
Advertisement
Strange. My first thought would be to do a clean rebuild of the project.

Share this post


Link to post
Share on other sites
dont use the debugger for device IO, use some sort of console output to see if the logic checks out ? is this just ur debugger?

Share this post


Link to post
Share on other sites
yea, i put a break a little before it, then stepped down to that code, put the mouse over that if statement (while highlighted to get the entire evaluation) and when in the tooltip box is what it's coming out to, but not apperently..

Share this post


Link to post
Share on other sites
All I can think of is, since you're past that step in the program, the copmiler maybe started using the memory for something else, and now when you hold your mouse over it, it happens to evaluate to 'false'.

But in Debug mode a compiler shouldn't do anything like that I don't think.

Share this post


Link to post
Share on other sites
I'd print the values just before the if statement and double check that they are actually coming out as false.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!