Permalink
Browse files

Fix crash on removing insert

  • Loading branch information...
feragon committed Jun 13, 2017
1 parent db707e3 commit e556fb7be0152fb9f80633ca28e1e15da60a815f
Showing with 7 additions and 1 deletion.
  1. +7 −1 lcviewernoqt/drawitems/lcvinsert.cpp
@@ -49,5 +49,11 @@ void LCVInsert::on_addEntityEvent(const lc::AddEntityEvent& event) {
}
void LCVInsert::on_removeEntityEvent(const lc::RemoveEntityEvent& event) {
_entities.erase(event.entity());
auto entity = event.entity();
if(!entity->block() || entity->id() == id()) {
return;
}
_entities.erase(entity);
}

0 comments on commit e556fb7

Please sign in to comment.