Prevent heal locations from being duplicated

This commit is contained in:
GriffinR
2020-07-10 20:33:43 -04:00
committed by huderlem
parent 1b832929b2
commit e518e2c554

View File

@@ -1893,6 +1893,7 @@ void Editor::duplicateSelectedEvents() {
logWarn(QString("Skipping duplication, the map limit for events of type '%1' has been reached.").arg(eventType));
continue;
}
if (eventType == EventType::HealLocation) continue;
Event *duplicate = new Event(*original);
map->addEvent(duplicate);
DraggablePixmapItem *object = addMapEvent(duplicate);