This commit is contained in:
2026-07-07 18:50:47 -07:00
parent 8c64583c00
commit 984972c126
+7 -4
View File
@@ -700,10 +700,13 @@ where
state: game.state.clone(),
instruction: instruction.clone(),
});
game.state
.stage_instruction(&mut stats.inner, &config.inner, instruction)
.unwrap()
.commit();
// This might be considered cheaing a bit, we're pre-approving the instruction here by accessing the inner fields.
G::process_instruction(StagedInstruction {
game: &mut game.state,
stats: &mut stats.inner,
config: &config.inner,
instruction,
});
}
}
}