mirror of
https://gitlab.com/klmp200/LO41.git
synced 2025-07-10 11:49:24 +00:00
Petit refactor avec des signaux
This commit is contained in:
@ -35,8 +35,9 @@ void start_all_threads_SharedData(THIS(SharedData)){
|
||||
List * visitors = NULL;
|
||||
|
||||
if (this->threads == NULL){
|
||||
if (this->main_building == NULL)
|
||||
if (this->main_building == NULL) {
|
||||
CRASH("No building attached to SharedData and thus no thread can be created\n");
|
||||
}
|
||||
else {
|
||||
residents = this->main_building->residents;
|
||||
visitors = this->main_building->visitors;
|
||||
|
Reference in New Issue
Block a user