diff --git a/src/key_pickup.cpp b/src/key_pickup.cpp index 9224b88..4cb3178 100644 --- a/src/key_pickup.cpp +++ b/src/key_pickup.cpp @@ -2,13 +2,14 @@ #include "car_player.hpp" #include "rally_rush_game_mode.hpp" #include "utils/game_root.hpp" +#include "utils/godot_macros.h" namespace godot { void KeyPickup::_bind_methods() { #define CLASSNAME KeyPickup } -void KeyPickup::_enter_tree() { +void KeyPickup::_enter_tree() { GDGAMEONLY(); this->connect("body_entered", callable_mp(this, &KeyPickup::on_body_entered)); }