diff --git a/src/pilot.c b/src/pilot.c index ee23583..417f769 100644 --- a/src/pilot.c +++ b/src/pilot.c @@ -144,7 +144,6 @@ void pilot_init(Pilot* pilot, Ship* ship, char* name, const double dir, const Ve if(flags & PILOT_PLAYER) { pilot->think = player_think; // Players don't need to thing! :P - pilot->update = pilot_update; pilot->render = NULL; pilot->properties |= PILOT_PLAYER; player = pilot; @@ -152,6 +151,7 @@ void pilot_init(Pilot* pilot, Ship* ship, char* name, const double dir, const Ve pilot->think = ai_think; pilot->update = pilot_update; } + pilot->update = pilot_update; } // Create a new pilot - Params are same as pilot_init. Return pilot's id.