Adding a check for item existence before calling the update on the render::Item

This commit is contained in:
samcake 2018-02-12 09:09:15 -08:00 committed by Brad Davis
parent f6fbac25b0
commit bc51f3643d

View file

@ -342,6 +342,13 @@ void Scene::updateItems(const Transaction::Updates& transactions) {
// Access the true item
auto& item = _items[updateID];
// If item doesn't exist it cannot be updated
if (!item.exist()) {
continue;
}
// Good to go, deal with the update
auto oldCell = item.getCell();
auto oldKey = item.getKey();