diff --git a/examplebot.cc b/examplebot.cc index 5eab738..08d5279 100644 --- a/examplebot.cc +++ b/examplebot.cc @@ -31,6 +31,12 @@ ExampleBot::ExampleBot(int _index, int _team, std::string _name) rlbot::Interface::SetGameState(gamestate); } +ExampleBot::~ExampleBot() +{ + // Free your allocated memory here. + printf("test\n"); +} + rlbot::Controller ExampleBot::GetOutput(const rlbot::flat::GameTickPacket *gameTickPacket, const rlbot::flat::FieldInfo *fieldInfo, diff --git a/examplebot.h b/examplebot.h index 4e6078c..64782a1 100644 --- a/examplebot.h +++ b/examplebot.h @@ -5,6 +5,7 @@ class ExampleBot : public rlbot::Bot { public: ExampleBot(int _index, int _team, std::string _name); + ~ExampleBot(); rlbot::Controller GetOutput(const rlbot::flat::GameTickPacket *gameTickPacket, const rlbot::flat::FieldInfo *fieldInfo,