lua_bindings/spatial_update_queue: Fix invalid access of freed memory

This commit is contained in:
Perttu Ahola 2014-10-30 18:56:49 +02:00
parent cf75c4cf20
commit 7e80e34cc6

View File

@ -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);
}
}