Managers: invert an assert condition.

Somehow, it made the app crash _only_ in release mode, while debug
was unaffected.
This commit is contained in:
Guillaume Jacquemin 2024-07-12 14:12:35 +02:00
parent b8584f26bb
commit 03cbb7f8ae
Signed by: williamjcm
SSH key fingerprint: SHA256:AYLOg+iTV0ElElnlu4vqM4edFazVdRiuQB0Y5LoKc4A

View file

@ -37,7 +37,7 @@ class VirtualFileSystem: public VfsDirectory<FileType> {
void build(Containers::ArrayView<FileType> files) {
for(auto& file : files) {
auto components = file.filename.split('/');
CORRADE_INTERNAL_ASSERT(components.size() == 0);
CORRADE_INTERNAL_ASSERT(components.size() != 0);
VfsDirectory<FileType>::buildNestedPath(*this, components, file);
}