]> git.rm.cloudns.org Git - xonotic/netradiant.git/commit
Do not crash in Winding_Clip when using -D_GLIBCXX_ASSERTIONS
authorWalter Doekes <walter+github@wjd.nu>
Sun, 17 Jul 2022 20:16:36 +0000 (22:16 +0200)
committerWalter Doekes <walter+github@wjd.nu>
Sun, 17 Jul 2022 20:16:39 +0000 (22:16 +0200)
commitbf7521b8672fe7554ade075542ba4e8ffe6f7305
treee968cb7a0c8889cb99490bcc981cd0c0c3b37357
parent611170782a3eb4f8e771afe90d2e336487bddf4e
Do not crash in Winding_Clip when using -D_GLIBCXX_ASSERTIONS

When setting -D_GLIBCXX_ASSERTIONS, invalid vector accesses are found,
like empty_vector.back(). In this case, the result was not used so the
bug wasn't found without the assertion.

This changeset fixes so dragging a brush to 0 size does not crash/abort
netradiant.

Closes #156.
radiant/winding.cpp