Jump to content

Launcher crash when I initialize a variable


Recommended Posts

  • Premium

Hi,

So, as the title says my client launcher is crashing when I initialize a variable.

I declared a class like this:

class CMyClass : public CSingleton<CMyClass>
{
	private:
		int var;
	public:
		void Initialize();
}

And the function Initialize():

void CMyClass::Initialize()
{
	var = 123;
}

No error at compilation, but when I run the launcher it's crashing.

I don't get it. Why is this happening?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.