Break game loading on invalid play.
This commit is contained in:
parent
30eaa81d1b
commit
20b2c03c0d
@ -56,7 +56,7 @@ impl Game {
|
||||
{
|
||||
self.init();
|
||||
for play in history {
|
||||
self.process(play).ok();
|
||||
if self.process(play).is_err() { break }
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user