mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
VarAction2: Set variable for ABS op to avoid unused read from var 0
This commit is contained in:
parent
f52e6cb8f2
commit
0bddf96f7f
@ -6330,6 +6330,7 @@ static bool TryMergeBoolMulCombineVarAction2Adjust(VarAction2OptimiseState &stat
|
||||
auto append_abs = [&]() {
|
||||
adjusts.emplace_back();
|
||||
adjusts.back().operation = DSGA_OP_ABS;
|
||||
adjusts.back().variable = 0x1A;
|
||||
state.inference |= VA2AIF_SIGNED_NON_NEGATIVE;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user