emit_x64_memory: Fix bug in 16-bit ordered EmitReadMemoryMov

This commit is contained in:
merry 2022-04-02 19:32:46 +01:00
parent 9cadab8fa9
commit cd91a36613

View file

@ -215,7 +215,7 @@ const void* EmitReadMemoryMov(BlockOfCode& code, int value_idx, const Xbyak::Reg
break; break;
case 16: case 16:
code.lock(); code.lock();
code.xadd(word[addr], Xbyak::Reg32{value_idx}); code.xadd(word[addr], Xbyak::Reg16{value_idx});
break; break;
case 32: case 32:
code.lock(); code.lock();