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) {