Skip to content

Commit f8fb0fa

Browse files
more funny bugs
1 parent ca196a6 commit f8fb0fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/system/IAsyncQueueDispatcher.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ class IAsyncQueueDispatcherBase
218218
friend class future_t<T>;
219219
inline storage_lock_t(future_t<T>* _future) : m_future(_future)
220220
{
221-
assert(m_future->state.query()==state_enum::LOCKED);
221+
assert(!m_future || m_future->state.query()==state_enum::LOCKED);
222222
}
223223
//! as usual for "unique" things
224224
inline storage_lock_t(const storage_lock_t&) = delete;

0 commit comments

Comments
 (0)