// This is literally how its created
#include "stdafx.h"
#include <engine.h>
#include "MainGame.h"
int main(int argc, char* argsv[])
{
CMainGame* theGame = new CMainGame();
theGame->Run();
return 0;
}
when I put breakpoints in the constructor and on update, first it breaks at constructor. And everything exists then, it is not null. When I press F5 it goes to the Update and then its 0x0000026 again. Could it be because of this in MainCharacter.h ?
class CMainGame;
class CMainCharacter
{
public:
But when I remove that line I get that:
error C2061: syntax error : identifier 'CMainGame'