@@ -590,8 +590,10 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out )
590
590
if (labor == df::enums::unit_labor::NONE)
591
591
continue ;
592
592
593
+ /*
593
594
assert(labor >= 0);
594
595
assert(labor < ARRAY_COUNT(labor_infos));
596
+ */
595
597
596
598
if (labor_infos[labor].is_exclusive && dwarfs[dwarf]->status .labors [labor])
597
599
dwarf_info[dwarf].mastery_penalty -= 100 ;
@@ -636,8 +638,10 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out )
636
638
{
637
639
int job = dwarfs[dwarf]->job .current_job ->job_type ;
638
640
641
+ /*
639
642
assert(job >= 0);
640
643
assert(job < ARRAY_COUNT(dwarf_states));
644
+ */
641
645
642
646
dwarf_info[dwarf].state = dwarf_states[job];
643
647
}
@@ -656,8 +660,10 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out )
656
660
int labor = ENUM_ATTR (job_skill, labor, skill);
657
661
if (labor != df::enums::unit_labor::NONE)
658
662
{
663
+ /*
659
664
assert(labor >= 0);
660
665
assert(labor < ARRAY_COUNT(labor_to_skill));
666
+ */
661
667
662
668
labor_to_skill[labor] = skill;
663
669
}
@@ -670,8 +676,10 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out )
670
676
if (labor == df::enums::unit_labor::NONE)
671
677
continue ;
672
678
679
+ /*
673
680
assert(labor >= 0);
674
681
assert(labor < ARRAY_COUNT(labor_infos));
682
+ */
675
683
676
684
labors.push_back (labor);
677
685
}
@@ -684,8 +692,10 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out )
684
692
{
685
693
auto labor = *lp;
686
694
695
+ /*
687
696
assert(labor >= 0);
688
697
assert(labor < ARRAY_COUNT(labor_infos));
698
+ */
689
699
690
700
df::job_skill skill = labor_to_skill[labor];
691
701
@@ -864,8 +874,10 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out )
864
874
if (labor == df::enums::unit_labor::NONE)
865
875
continue ;
866
876
877
+ /*
867
878
assert(labor >= 0);
868
879
assert(labor < ARRAY_COUNT(labor_infos));
880
+ */
869
881
870
882
if (labor_infos[labor].mode != HAULERS)
871
883
continue ;
0 commit comments