diff --git a/src/server/distrend.c b/src/server/distrend.c --- a/src/server/distrend.c +++ b/src/server/distrend.c @@ -72,7 +72,7 @@ struct { int frame_num; // frame number to render char slave_name; // user that frame is assigned to int frame_status; // status of frame, 0= unassigned, 1= taken, 2= done -} frameset[frame_count]; // Frame count is the frame number if the animation starts on zero... but animations start at frame 1 +} frameset[]; // Frameset array is generated by status_report_generator function // Using this method to save memory, because if animation starts on a high frame number, it would waste a lot of RAM on empty structures // -- end of Matthew's handywork -- @@ -288,8 +288,9 @@ int frame_finder(){ int finder_jobnum = 0; int frameset_count = 0; // the frameset number, note* frames in an animation don't start at zero short int done = 0; + int priority = 10; - for(int priority = 10; priority >= 1; priority--){ // start the scan for the next job with the highest priority + for(priority; priority >= 1; priority--){ // start the scan for the next job with the highest priority finder_jobnum = hcfjob + 1; // reset it to start scanning at first uncompleted job for the pass at each priority level while(finder_jobnum <= highest_jobnum){