[Fix] Segfault in pilot.c

This commit is contained in:
Tamir Atias 2013-02-05 20:01:49 +02:00
parent cf86e5b0c7
commit 33f61736c4

View File

@ -144,6 +144,7 @@ void pilot_init(Pilot* pilot, Ship* ship, char* name, const double dir, const Ve
if(flags & PILOT_PLAYER) { if(flags & PILOT_PLAYER) {
pilot->think = player_think; // Players don't need to thing! :P pilot->think = player_think; // Players don't need to thing! :P
pilot->update = pilot_update;
pilot->render = NULL; pilot->render = NULL;
pilot->properties |= PILOT_PLAYER; pilot->properties |= PILOT_PLAYER;
player = pilot; player = pilot;