Fix crash when storage file gets deleted due to missing ref from async thread which failed to load it

This commit is contained in:
Wojtek Figat
2024-02-09 15:52:53 +01:00
parent 87c66b0168
commit 080202cf95
2 changed files with 19 additions and 16 deletions

View File

@@ -58,17 +58,17 @@ public:
return _storage != nullptr;
}
FORCE_INLINE bool operator ==(const FlaxStorageReference& other) const
FORCE_INLINE bool operator==(const FlaxStorageReference& other) const
{
return _storage == other._storage;
}
FORCE_INLINE bool operator !=(const FlaxStorageReference& other) const
FORCE_INLINE bool operator!=(const FlaxStorageReference& other) const
{
return _storage != other._storage;
}
FORCE_INLINE FlaxStorage* operator ->() const
FORCE_INLINE FlaxStorage* operator->() const
{
return _storage;
}