mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-02-17 10:26:21 +01:00
![Pengfei](/assets/img/avatar_default.png)
When the vector is empty, using `&vec[0]` involves undefined behaviour. While that works fine most of the time, Flatpak builds aborted on a failed `__builtin_expect`. I searched for such occurences across the codebase with the regex `(?<!&)&\w+\[0\]` and fixed those that would potentially cause issues.