From 08a5f93af8d289034f6088e2fdb8bd924fe12364 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Fri, 24 Oct 2025 09:33:09 -0400 Subject: dungeon: fix hash calculation for floor tiles --- dungeon/src/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dungeon') 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); -- cgit v1.2.3-freya