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;
|
return;
|
||||||
} else {
|
} else {
|
||||||
// New item is more important
|
// New item is more important
|
||||||
m_value_set.remove(item.value);
|
|
||||||
m_queue.erase(*itp);
|
m_queue.erase(*itp);
|
||||||
m_queue_length--;
|
m_queue_length--;
|
||||||
|
m_value_set.remove(item.value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user