From d58ea6f28d4018652afc221fce130b8964ef4ad2 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Tue, 21 Nov 2023 16:38:09 +0200 Subject: [PATCH] Fix keymaster visitation status tracking --- lib/mapObjects/CQuest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mapObjects/CQuest.cpp b/lib/mapObjects/CQuest.cpp index 944efa994..3f4275a3a 100644 --- a/lib/mapObjects/CQuest.cpp +++ b/lib/mapObjects/CQuest.cpp @@ -778,7 +778,7 @@ void CGQuestGuard::serializeJsonOptions(JsonSerializeFormat & handler) bool CGKeys::wasMyColorVisited(const PlayerColor & player) const { - return cb->getPlayerState(player)->visitedObjectsGlobal.count({ID, subID}) != 0; + return cb->getPlayerState(player)->visitedObjectsGlobal.count({Obj::KEYMASTER, subID}) != 0; } std::string CGKeys::getHoverText(PlayerColor player) const