# HG changeset patch # User LordOfWar # Date 2009-10-14 15:06:09 # Node ID 5ab7395864add675e453d14d944659a27c4bc304 # Parent e6281bdd12c310e1e89434ce5389463f62c85e13 attempting to fix find_jobframe() diff --git a/src/server/distrend.c b/src/server/distrend.c --- a/src/server/distrend.c +++ b/src/server/distrend.c @@ -383,7 +383,7 @@ int find_jobframe(struct distrenjob *hea your_job_type = 0; found = 0; /* iterate through jobs from first to last */ - for(distrenjob_ptr = head->next; (!found && !distrenjob_ptr) && !distrenjob_ptr->hibernate; distrenjob_ptr = distrenjob_ptr->next) + for(distrenjob_ptr = head->next; (!found && distrenjob_ptr) && !distrenjob_ptr->hibernate; distrenjob_ptr = distrenjob_ptr->next) for(frame_counter = (distrenjob_ptr->prev_frame_index + 1); !found && frame_counter < distrenjob_ptr->total_frames; frame_counter ++) if(distrenjob_ptr->frameset[frame_counter].status == FRAMESETSTATUS_UNASSIGNED) // jobframe found {