mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 03:50:40 +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
|
// Access the true item
|
||||||
auto& item = _items[updateID];
|
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 oldCell = item.getCell();
|
||||||
auto oldKey = item.getKey();
|
auto oldKey = item.getKey();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue