Add a call to `std::move` that I missed (#1917)
This commit is contained in:
parent
e1821d0023
commit
eedb0ba478
|
@ -758,7 +758,7 @@ std::unique_ptr<CartCommon> ParseROM(std::unique_ptr<u8[]>&& romdata, u32 romlen
|
||||||
std::unique_ptr<u8[]> cartsram;
|
std::unique_ptr<u8[]> cartsram;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
cartsram = sramdata ? std::make_unique<u8[]>(sramlen) : nullptr;
|
cartsram = std::move(sramdata) ? std::make_unique<u8[]>(sramlen) : nullptr;
|
||||||
}
|
}
|
||||||
catch (const std::bad_alloc& e)
|
catch (const std::bad_alloc& e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue