Crash for no reason | C++

I’m guessing the global he’s refering to is that it’s defined in the header file. Not really global but rather class scoped.