dai_select_tech() clang analyzer warning about garbage goal_values[i]
S3_1, clang analyzer:
../../../../src/ai/default/aitech.c:174:26: warning: The left operand of '>' is a garbage value [core.UndefinedBinaryOperatorResult] if (goal_values[i] > goal_values[newgoal]
This was partly fixed by #47959, but not completely
Bugfix for S3_0 & S3_1 attached. Later branches are not affected, but small part of the patch ported for optimization reasons.
S3_1, clang analyzer:
This was partly fixed by #47959, but not completely