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.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/dungeon/src/map.rs b/dungeon/src/map.rs
index ed92882..a28248b 100644
--- a/dungeon/src/map.rs
+++ b/dungeon/src/map.rs
@@ -138,11 +138,9 @@ impl Floor {
#[must_use]
pub fn hash(&self) -> u64 {
// initial (immutable) dirty check
- let dirty = self.dirty.borrow();
- if !*dirty {
+ if !*self.dirty.borrow() {
return *self.hash.borrow();
}
- drop(dirty);
// recompute hash
let mut dirty = self.dirty.borrow_mut();