[Fix] Segfault in pilot.c
This commit is contained in:
parent
cf86e5b0c7
commit
33f61736c4
@ -144,6 +144,7 @@ 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;
|
||||
|
Loading…
Reference in New Issue
Block a user