Forward Declaration of Class breaks the game

Started by
20 comments, last by NightCreature83 10 years, 9 months ago

Don't name your parameters the same thing as your class members then.

If you don't like m_thing, mThing, thing_ etc. you could use theListener for the member and aListener for the argument (parameter) to a function.

"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley
Advertisement

And stop debugging in release mode as it has all kinds of optimisations on and shuffles the code around quite a bit to make it faster or smaller executable size. This means that the crash you had doesn't necessarily have to happen on the line that the debugger is indicating. Looking at the callstack becomes important then to figure out where it was coming from and what it was supposed to do.

Worked on titles: CMR:DiRT2, DiRT 3, DiRT: Showdown, GRID 2, theHunter, theHunter: Primal, Mad Max, Watch Dogs: Legion

This topic is closed to new replies.

Advertisement