check for combine overflow

This commit is contained in:
Mashy 2019-11-19 13:17:33 +10:00
parent 2ba8a63d81
commit 2a82666498

View File

@ -171,7 +171,9 @@ impl Vbox {
self.bound.push(combo.item); self.bound.push(combo.item);
// self.bound.sort_unstable(); // self.bound.sort_unstable();
if self.bound.len() >= 10 {
return Err(err_msg("too many items bound"));
}
Ok(self) Ok(self)
} }
} }