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 fb42a77..24378a5 100644
--- a/dungeon/src/map.rs
+++ b/dungeon/src/map.rs
@@ -158,7 +158,7 @@ impl Floor {
pub fn hash(&self) -> u64 {
// initial (immutable) dirty check
let dirty = self.dirty.borrow();
- if *dirty {
+ if !*dirty {
return *self.hash.borrow();
}
drop(dirty);