From ce2055ee97aae69c1627400704ab5fe7556ee641 Mon Sep 17 00:00:00 2001 From: soraefir Date: Wed, 3 Apr 2024 08:42:28 +0200 Subject: [PATCH] [m] Fix clear --- app/src/main/java/net/helcel/beans/helper/Visits.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/helcel/beans/helper/Visits.kt b/app/src/main/java/net/helcel/beans/helper/Visits.kt index de370b1..10eb23d 100644 --- a/app/src/main/java/net/helcel/beans/helper/Visits.kt +++ b/app/src/main/java/net/helcel/beans/helper/Visits.kt @@ -12,7 +12,7 @@ import java.io.InputStream class Visits(val id: Int, private val locs: HashMap) { fun setVisited(key: GeoLoc?, b: Int) { - if (b == 0 || key == null) + if (key == null) return locs[key.code] = b }