# Fix crash when emptying atlases · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/8445eaab85bd4ab23f4bb729fd46567b6b8b7017)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 8445eaab85bd4ab23f4bb729fd46567b6b8b7017

Requested commit: 8445eaab85bd4ab23f4bb729fd46567b6b8b7017

Commit: 8445eaab85bd4ab23f4bb729fd46567b6b8b7017

Tree: fff5bf0691afcf71b2d88e491241842aadaaa419

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Fix crash when emptying atlases

Previously, when an atlas was emptied, we would move it into a different
vector: free_atlases. This removal could cause existing atlas ids to
refer to the wrong atlases.

```

## Parents

- [4620c7a1e5ccb721b7879eceb34f0dab2d13db74](https://git.cafe/gitcafe/zed/commit/4620c7a1e5ccb721b7879eceb34f0dab2d13db74?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/8445eaab85bd4ab23f4bb729fd46567b6b8b7017?format=markdown)
