missed this const fix

This commit is contained in:
jake 2021-06-15 20:43:07 -06:00
parent 8cece2431f
commit f9be2596cf

View File

@ -390,9 +390,11 @@ pub struct Block {
impl Default for Block {
fn default() -> Block {
const SNONE: Option<room::RoomState> = None;
const NONE: Rooms = [SNONE; MAX_ROOMS];
Block {
client_location: Box::new(ClientLocation::default()),
rooms: Box::new([None; MAX_ROOMS]),
rooms: Box::new(NONE),
}
}
}