mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 08:22:19 +02:00
Adding a check for item existence before calling the update on the render::Item
This commit is contained in:
parent
f6fbac25b0
commit
bc51f3643d
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue