Permalink
Browse files

Invert a logic test

 * once of the changes in a27b51 was missing a needed "!"
 * fixes #2044, fixes #2046
  • Loading branch information...
Dilvish-fo committed Mar 12, 2018
1 parent d5f275d commit f9c6da62fff2125ef31184a6663433fe52c93c2b
Showing with 1 addition and 1 deletion.
  1. +1 −1 universe/ObjectMap.cpp
View
@@ -171,7 +171,7 @@ ObjectMap::const_iterator<> ObjectMap::const_end() const
void ObjectMap::InsertCore(std::shared_ptr<UniverseObject> item, int empire_id/* = ALL_EMPIRES*/) {
FOR_EACH_MAP(TryInsertIntoMap, item);
if (item &&
GetUniverse().EmpireKnownDestroyedObjectIDs(empire_id).count(item->ID()))
!GetUniverse().EmpireKnownDestroyedObjectIDs(empire_id).count(item->ID()))
{
auto this_item = this->Object(item->ID());
m_existing_objects[item->ID()] = this_item;

0 comments on commit f9c6da6

Please sign in to comment.