lua_bindings/spatial_update_queue: Fix invalid access of freed memory
This commit is contained in:
parent
cf75c4cf20
commit
7e80e34cc6
@ -183,9 +183,9 @@ struct SpatialUpdateQueue
|
||||
return;
|
||||
} else {
|
||||
// New item is more important
|
||||
m_value_set.remove(item.value);
|
||||
m_queue.erase(*itp);
|
||||
m_queue_length--;
|
||||
m_value_set.remove(item.value);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user