From 591e0dad70e8aa9514039f9193dfcd57d6334a7f Mon Sep 17 00:00:00 2001 From: Guillaume Pasquet Date: Tue, 19 Nov 2019 04:23:13 +0000 Subject: Ensure privacy is private --- src/state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index 2c5f16f..1a2387d 100644 --- a/src/state.rs +++ b/src/state.rs @@ -2,7 +2,7 @@ use crossterm::cursor::MoveTo; use crossterm::{queue, Output}; use std::io::{stdout, Write}; -use crate::entities::{Character, Player, Entity}; +use crate::entities::{Character, Entity, Player}; use crate::tiling::{tile_to_str, TileGrid}; use crate::world::{Dungeon, Generatable, Level}; @@ -82,7 +82,7 @@ impl State { let mut sout = stdout(); queue!( sout, - MoveTo(0, (self.dungeon.ysize + 1) as u16), + MoveTo(0, (self.dungeon.get_ysize() + 1) as u16), Output(self.player.stats()) ) .unwrap(); -- cgit v1.2.3