summaryrefslogtreecommitdiff
path: root/dungeon/src/map.rs
diff options
context:
space:
mode:
Diffstat (limited to 'dungeon/src/map.rs')
-rw-r--r--dungeon/src/map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/dungeon/src/map.rs b/dungeon/src/map.rs
index a28248b..4928a29 100644
--- a/dungeon/src/map.rs
+++ b/dungeon/src/map.rs
@@ -83,7 +83,7 @@ pub struct Floor {
}
impl Floor {
/// Construct a floor from its components
- pub fn new(tiles: Box<[Tile; TILE_COUNT]>, player_start: Pos) -> Self {
+ pub const fn new(tiles: Box<[Tile; TILE_COUNT]>, player_start: Pos) -> Self {
Self {
tiles,
player_start,