Browse Source

Fix typo in assertion

Ivan Savenko 1 year ago
parent
commit
184d8de82e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/PlayerLocalState.cpp

+ 1 - 1
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;