VarAction2: Ensure that store simplification can't break var 7B

This commit is contained in:
Jonathan G Rennison
2022-06-10 17:56:56 +01:00
parent 3bddd55921
commit 23e6d861fc

View File

@@ -6877,7 +6877,7 @@ static void OptimiseVarAction2DeterministicSpriteGroupSimplifyStores(Determinist
} }
const DeterministicSpriteGroupAdjust &next = group->adjusts[j]; const DeterministicSpriteGroupAdjust &next = group->adjusts[j];
if (next.operation == DSGA_OP_RST) { if (next.operation == DSGA_OP_RST) {
ok = true; ok = (next.variable != 0x7B);
break; break;
} }
if (is_constant && next.operation == DSGA_OP_STO_NC) { if (is_constant && next.operation == DSGA_OP_STO_NC) {