From 184d8de82e16ae8f2568c9fa9305e4e246a422ee Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Sun, 13 Oct 2024 13:06:07 +0000 Subject: [PATCH] Fix typo in assertion --- client/PlayerLocalState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/PlayerLocalState.cpp b/client/PlayerLocalState.cpp index 519c39c94..2b347cb27 100644 --- a/client/PlayerLocalState.cpp +++ b/client/PlayerLocalState.cpp @@ -347,7 +347,7 @@ void PlayerLocalState::deserialize(const JsonNode & source) { // this method must be called after player state has been initialized assert(currentSelection != nullptr); - assert(!ownedTowns.empty() || wanderingHeroes.empty()); + assert(!ownedTowns.empty() || !wanderingHeroes.empty()); auto oldHeroes = wanderingHeroes; auto oldTowns = ownedTowns;