mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
object_pool: Add missing return in Chunk move assignment operator
Prevents undefined behavior from occurring.
This commit is contained in:
parent
7e272d3cd8
commit
89ad9df0e9
@ -63,6 +63,7 @@ private:
|
|||||||
used_objects = std::exchange(rhs.used_objects, 0);
|
used_objects = std::exchange(rhs.used_objects, 0);
|
||||||
num_objects = std::exchange(rhs.num_objects, 0);
|
num_objects = std::exchange(rhs.num_objects, 0);
|
||||||
storage = std::move(rhs.storage);
|
storage = std::move(rhs.storage);
|
||||||
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
Chunk(Chunk&& rhs) noexcept
|
Chunk(Chunk&& rhs) noexcept
|
||||||
|
Loading…
Reference in New Issue
Block a user