1
0
mirror of https://gitlab.com/klmp200/LO41.git synced 2025-07-11 20:29:24 +00:00

Et voilà, c'est propre comme ça :D

This commit is contained in:
2018-06-18 15:56:22 +02:00
parent b001cb1a91
commit e820bd7a58
3 changed files with 5 additions and 5 deletions

View File

@ -144,7 +144,7 @@ int get_inside_elevator_Building(THIS(Building), int current_floor, ElevatorPass
if (this->elevators[i]->can_get_inside(this->elevators[i], current_floor)){
/* pour faire taire le compilateur le temps que je revienne sur cette fonction */
if (elevator_passenger.type == VISITOR)
this->elevators[i]->add_passenger(this->elevators[i], elevator_passenger.passenger.visitor->get_id(elevator_passenger.passenger.visitor));
this->elevators[i]->add_passenger(this->elevators[i], elevator_passenger);
/* Il faut faire des trucs ici */
pthread_mutex_unlock(this->mutex_func_get_inside_elevator);
return i;