Gamemode error

After i created the game mode as shown here The Game Mode Class | GameDev.tv
i am getting many crashes

Could you show your turret.cpp code please?

i am sending the entire code file [ToonTanks - Google Drive]

You never initialised Pank to point to anything. You’re dereferencing a null pointer on line 60.

You need to initialise that variable to point to the player Tank.

Privacy & Terms