1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-10 14:11:43 +00:00

dmnt-cheat: const correctness

This commit is contained in:
Michael Scire 2019-03-05 01:40:49 -08:00
parent 853a57e4d4
commit 4e95397ed5

View file

@ -370,7 +370,7 @@ bool DmntCheatVm::DecodeNextOpcode(CheatVmOpcode *out) {
void DmntCheatVm::SkipConditionalBlock() {
if (this->condition_depth > 0) {
/* We want to continue until we're out of the current block. */
size_t desired_depth = this->condition_depth - 1;
const size_t desired_depth = this->condition_depth - 1;
CheatVmOpcode skip_opcode;
while (this->DecodeNextOpcode(&skip_opcode) && this->condition_depth > desired_depth) {