Add a call to std::move that I missed (#1917)

This commit is contained in:
Jesse Talavera
2023-12-15 14:52:35 -05:00
committed by GitHub
parent e1821d0023
commit eedb0ba478

View File

@ -758,7 +758,7 @@ std::unique_ptr<CartCommon> ParseROM(std::unique_ptr<u8[]>&& romdata, u32 romlen
std::unique_ptr<u8[]> cartsram;
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)
{