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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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)
{