Browse Source

missed this const fix

jake 4 years ago
committed by andy
parent
commit
a8cd0db6cb
  1. 4
      src/ship/ship.rs

4
src/ship/ship.rs

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

Loading…
Cancel
Save